mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
27 lines
641 B
JavaScript
27 lines
641 B
JavaScript
![]() |
|
||
|
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',
|
||
|
main: './src/main.ts',
|
||
|
index: './src/index.html',
|
||
|
baseHref: '/',
|
||
|
assets: ["./src/favicon.ico","./src/assets"],
|
||
|
styles: ["./src/styles.css"],
|
||
|
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
|
||
|
optimization: process.env['NODE_ENV'] === 'production',
|
||
|
})
|
||
|
],
|
||
|
};
|
||
|
|