2025-04-22 22:06:10 +03:00
|
|
|
|
|
|
|
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
|
|
|
|
const { join } = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
output: {
|
|
|
|
path: join(__dirname, 'dist'),
|
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
port: 4200
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new NxAppWebpackPlugin({
|
|
|
|
tsConfig: './tsconfig.app.json',
|
|
|
|
compiler: 'swc',
|
2025-04-23 09:32:47 +03:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
],
|
2025-04-22 22:06:10 +03:00
|
|
|
baseHref: '/',
|
2025-04-22 22:29:00 +03:00
|
|
|
assets: ["./src/assets"],
|
2025-04-22 23:02:36 +03:00
|
|
|
styles: [],
|
2025-04-22 22:06:10 +03:00
|
|
|
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
|
|
|
|
optimization: process.env['NODE_ENV'] === 'production',
|
|
|
|
})
|
|
|
|
],
|
2025-04-23 08:38:06 +03:00
|
|
|
resolve: {
|
|
|
|
fallback: {
|
|
|
|
path: false,
|
2025-04-23 09:27:53 +03:00
|
|
|
fs: false,
|
|
|
|
util: false
|
2025-04-23 08:38:06 +03:00
|
|
|
}
|
|
|
|
}
|
2025-04-22 22:06:10 +03:00
|
|
|
};
|
|
|
|
|