2020-04-12 14:22:51 +02:00
|
|
|
const path = require('path');
|
2024-02-17 19:09:36 +02:00
|
|
|
const assetPath = require('./src/services/asset_path');
|
2020-04-12 14:22:51 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: 'production',
|
|
|
|
entry: {
|
2024-07-10 12:15:03 -07:00
|
|
|
setup: './src/public/app/setup.js',
|
2020-04-14 21:57:42 +02:00
|
|
|
mobile: './src/public/app/mobile.js',
|
2024-07-10 12:15:03 -07:00
|
|
|
desktop: './src/public/app/desktop.js'
|
2020-04-12 14:22:51 +02:00
|
|
|
},
|
|
|
|
output: {
|
2022-12-25 10:48:51 +01:00
|
|
|
publicPath: `${assetPath}/app-dist/`,
|
2020-04-14 21:57:42 +02:00
|
|
|
path: path.resolve(__dirname, 'src/public/app-dist'),
|
2024-07-10 12:15:03 -07:00
|
|
|
filename: '[name].js'
|
2020-04-12 14:22:51 +02:00
|
|
|
},
|
2021-12-23 23:01:25 +01:00
|
|
|
devtool: 'source-map',
|
2024-07-10 12:15:03 -07:00
|
|
|
target: 'electron-renderer'
|
2021-12-23 23:01:25 +01:00
|
|
|
};
|