trilium/webpack-desktop.config.js

16 lines
420 B
JavaScript

const path = require('path');
const assetPath = require('./src/services/asset_path');
module.exports = {
mode: 'production',
entry: {
mobile: './src/public/app/desktop.js',
},
output: {
publicPath: `/${assetPath}/app-dist/`,
path: path.resolve(__dirname, 'src/public/app-dist'),
filename: 'desktop.js'
},
devtool: 'source-map',
target: 'electron-renderer'
};