summaryrefslogtreecommitdiff
path: root/WebInterface/webpack.config.js
diff options
context:
space:
mode:
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/',
+ },
+ },
+];