mirror of
https://github.com/zadam/trilium.git
synced 2025-10-02 11:35:41 +08:00
chore(nx/client): set up entrypoints
This commit is contained in:
parent
f89eb8cfd9
commit
c3a0c5427d
3 changed files with 29 additions and 10 deletions
|
@ -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"),
|
||||
|
|
0
apps/client/src/index.ts
Normal file
0
apps/client/src/index.ts
Normal 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: [],
|
||||
|
|
Loading…
Add table
Reference in a new issue