2020-04-12 20:22:51 +08:00
|
|
|
const path = require('path');
|
2022-10-27 05:50:54 +08:00
|
|
|
const assetPath = require('./src/services/asset_path');
|
2020-04-12 20:22:51 +08:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: 'production',
|
|
|
|
entry: {
|
2023-04-15 17:39:26 +08:00
|
|
|
setup: './src/public/app/setup.js',
|
2020-04-15 03:57:42 +08:00
|
|
|
mobile: './src/public/app/mobile.js',
|
2023-04-15 17:39:26 +08:00
|
|
|
desktop: './src/public/app/desktop.js',
|
2020-04-12 20:22:51 +08:00
|
|
|
},
|
|
|
|
output: {
|
2022-12-25 17:48:51 +08:00
|
|
|
publicPath: `${assetPath}/app-dist/`,
|
2020-04-15 03:57:42 +08:00
|
|
|
path: path.resolve(__dirname, 'src/public/app-dist'),
|
2023-04-15 17:39:26 +08:00
|
|
|
filename: '[name].js',
|
2020-04-12 20:22:51 +08:00
|
|
|
},
|
2021-12-24 06:01:25 +08:00
|
|
|
devtool: 'source-map',
|
2023-04-15 17:39:26 +08:00
|
|
|
target: 'electron-renderer',
|
2021-12-24 06:01:25 +08:00
|
|
|
};
|