summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/webpack.config.js
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-10-01 22:57:22 +0200
committerTrueDoctor <d-kobert@web.de>2018-10-01 22:57:22 +0200
commit373af0a9c563dcd6bfb5e136f75f23e48bfb961c (patch)
tree693f019c86635222c3742ce97e764d7ba36065b5 /WebInterface/NodeJSServer/webpack.config.js
parente7cac3a24b88a139eaf237a4342fa27c00bf2097 (diff)
parentd24bc122966845bfc793c46aa268529f086af58f (diff)
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'WebInterface/NodeJSServer/webpack.config.js')
-rw-r--r--WebInterface/NodeJSServer/webpack.config.js46
1 files changed, 35 insertions, 11 deletions
diff --git a/WebInterface/NodeJSServer/webpack.config.js b/WebInterface/NodeJSServer/webpack.config.js
index f3635f7..a3712c3 100644
--- a/WebInterface/NodeJSServer/webpack.config.js
+++ b/WebInterface/NodeJSServer/webpack.config.js
@@ -1,15 +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'
+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')
- }
-};
+];