Revert "docker: Fix webpack"

This reverts commit 0a7fcf399f.
This commit is contained in:
Elian Doran
2024-07-13 11:32:02 +03:00
parent 9b88228be9
commit 60d134a89b
3 changed files with 4 additions and 4 deletions

18
webpack.config.js Normal file
View 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.ts',
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',
};