mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
perf: building improvement
This commit is contained in:
18
webpack.config.js
Normal file
18
webpack.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const path = require('path');
|
||||
const assetPath = require('./src/services/asset_path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
setup: './src/public/app/setup.js',
|
||||
mobile: './src/public/app/mobile.js',
|
||||
desktop: './src/public/app/desktop.js',
|
||||
},
|
||||
output: {
|
||||
publicPath: `${assetPath}/app-dist/`,
|
||||
path: path.resolve(__dirname, 'src/public/app-dist'),
|
||||
filename: '[name].js',
|
||||
},
|
||||
devtool: 'source-map',
|
||||
target: 'electron-renderer',
|
||||
};
|
||||
Reference in New Issue
Block a user