chore(nx/client): set up entrypoints

This commit is contained in:
Elian Doran
2025-04-23 09:32:47 +03:00
parent f89eb8cfd9
commit c3a0c5427d
3 changed files with 29 additions and 10 deletions

0
apps/client/src/index.ts Normal file
View File

View File

@@ -13,7 +13,34 @@ module.exports = {
new NxAppWebpackPlugin({
tsConfig: './tsconfig.app.json',
compiler: 'swc',
main: './src/desktop.ts',
main: "./src/index.ts",
additionalEntryPoints: [
{
entryName: "desktop",
entryPath: "./src/desktop.ts"
},
{
entryName: "mobile",
entryPath: "./src/mobile.ts"
},
{
entryName: "login",
entryPath: "./src/login.ts"
},
{
entryName: "setup",
entryPath: "./src/setup.ts"
},
{
entryName: "share",
entryPath: "./src/share.ts"
},
{
// TriliumNextTODO: integrate set_password into setup entry point/view
entryName: "set_password",
entryPath: "./src/set_password.ts"
}
],
baseHref: '/',
assets: ["./src/assets"],
styles: [],