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 19:12:47 +0100
commitce1bd2c48d2aaabda784ebc42ce1d7efac4b2303 (patch)
treed109f6f139868a7239ca16ac0eae331fe71f3539 /webpack.config.js
parent7093bea641652ca4cddba8233d56c5968787f01b (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()],