summaryrefslogtreecommitdiff
path: root/WebInterface/webpack.config.js
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-12 21:51:39 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-12 21:51:39 +0200
commit9e9c1c822a64c0a65033b7eed07ea661a385cecc (patch)
treeee699d4e93bb4204f5f4e04cd14f6d77365b81b4 /WebInterface/webpack.config.js
parent304437b834e8c87687f68333ae67a13ee1377a73 (diff)
parent3a3d0fc3d4733f8908e23a03f860d76340479ec4 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'WebInterface/webpack.config.js')
-rw-r--r--WebInterface/webpack.config.js39
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/',
+ },
+ },
+];