Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(nx/client): set up entrypoints
Elian Doranc3a0c5427d3d
diff --git a/_regroup_monorepo/apps/client/webpack.config.ts b/_regroup_monorepo/apps/client/webpack.config.tsindex 6e4166ed38..029018b941 100644--- a/_regroup_monorepo/apps/client/webpack.config.ts+++ b/_regroup_monorepo/apps/client/webpack.config.ts@@ -9,15 +9,7 @@ import CopyPlugin from "copy-webpack-plugin";const rootDir = path.dirname(fileURLToPath(import.meta.url));const config: Configuration = {mode: "production",- entry: {- setup: "./src/setup.js",- login: "./src/login.js",- mobile: "./src/mobile.js",- desktop: "./src/desktop.js",- share: "./src/share.js",- // TriliumNextTODO: integrate set_password into setup entry point/view- set_password: "./src/set_password.js"- },+ entry: {},output: {publicPath: `${assetPath}/app-dist/`,path: path.resolve(rootDir, "build"),diff --git a/apps/client/src/index.ts b/apps/client/src/index.tsnew file mode 100644index 0000000000..e69de29bb2diff --git a/apps/client/webpack.config.js b/apps/client/webpack.config.jsindex f430b81bf6..8a879e40a7 100644--- a/apps/client/webpack.config.js+++ b/apps/client/webpack.config.js@@ -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: [],