diff options
Diffstat (limited to 'WebInterface/NodeJSServer/webpack.config.js')
-rw-r--r-- | WebInterface/NodeJSServer/webpack.config.js | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/WebInterface/NodeJSServer/webpack.config.js b/WebInterface/NodeJSServer/webpack.config.js index 6bfeb79..a3712c3 100644 --- a/WebInterface/NodeJSServer/webpack.config.js +++ b/WebInterface/NodeJSServer/webpack.config.js @@ -1,16 +1,39 @@ const path = require('path'); const nodeExternals = require('webpack-node-externals'); -module.exports = { - mode: 'production', - entry: { - index: './src/index.js', - about: './src/about.js', - play: './src/play.js', - playModule: './src/play-module.js', +module.exports = [ + { + mode: 'production', + entry: { + index: './src/index.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: './script/', + }, + }, { + mode: 'production', + entry: { + about: './src/about.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: '../script/', + }, + }, { + mode: 'production', + entry: { + play: './src/play.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: '../script/', + }, }, - output: { - filename: '[name].js', - path: path.resolve(__dirname, './dist/script'), - }, -}; +]; |