summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-07-05 11:15:05 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 09:42:15 +0100
commitc614436d29a11ddbb1218485a05da7dde0e57038 (patch)
treed109f6f139868a7239ca16ac0eae331fe71f3539 /webpack.config.js
parent5ef2a232c9f8701531419f6d8ac8ebcfc4d21fc6 (diff)
FUNCT Add buttons, fan speed and chair functionality
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index e6baeb2..ed7e0a3 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,10 +9,18 @@ const ZipPlugin = require('zip-webpack-plugin');
module.exports = {
mode: 'production',
- entry: './src/index.js',
+ entry: {
+ index: './src/index.js',
+ FANSPEED: './src/js/fan_speed.js',
+ CHAIR: './src/js/chair.js',
+ BUTTON: './src/js/buttons.js'
+ },
output: {
- filename: 'index.js',
- path: __dirname + '/dist'
+ path: __dirname + '/dist',
+ filename: '[name].js',
+ libraryTarget: 'var',
+ // `library` determines the name of the global variable
+ library: '[name]'
},
optimization: {
minimizer: [new UglifyJsPlugin()],