aboutsummaryrefslogtreecommitdiffstats
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 19:20:13 +0100
commita62589e05103b60e7d478de86345cc4c4cfc9036 (patch)
treed109f6f139868a7239ca16ac0eae331fe71f3539 /webpack.config.js
parent122bd72d9b2acfff0d8c3f8dd5df8ff49b43eb7b (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()],