mirror of
https://github.com/zadam/trilium.git
synced 2024-11-14 11:45:20 +08:00
18 lines
514 B
JavaScript
18 lines
514 B
JavaScript
const path = require('path');
|
|
const assetPath = require('./src/services/asset_path.js');
|
|
|
|
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',
|
|
};
|