diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:53:30 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:53:30 +0200 |
commit | 3a3d0fc3d4733f8908e23a03f860d76340479ec4 (patch) | |
tree | cf4b82f61d01d2a24836e9820d73972436847982 /WebInterface/webpack.config.js | |
parent | c28c9fafa2c74b101f7ce777aac722dcdeecefc6 (diff) |
Reorganize Project structure
Diffstat (limited to 'WebInterface/webpack.config.js')
-rw-r--r-- | WebInterface/webpack.config.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/WebInterface/webpack.config.js b/WebInterface/webpack.config.js new file mode 100644 index 0000000..4b408a2 --- /dev/null +++ b/WebInterface/webpack.config.js @@ -0,0 +1,39 @@ +const path = require('path'); +const nodeExternals = require('webpack-node-externals'); + +module.exports = [ + { + mode: 'production', + entry: { + index: './src/js/index.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: './script/', + }, + }, { + mode: 'production', + entry: { + about: './src/js/about.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: '../script/', + }, + }, { + mode: 'production', + entry: { + play: './src/js/play.js', + }, + output: { + filename: '[name].js', + chunkFilename: '[name].js', + path: path.resolve(__dirname, './dist/script/'), + publicPath: '../script/', + }, + }, +]; |