summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 072f70a..ac50a74 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -10,11 +10,7 @@ const ZipPlugin = require('zip-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
- index: './src/index.js',
- FANSPEED: './src/js/fan_speed.js',
- CHAIR: './src/js/chair.js',
- BUTTON: './src/js/buttons.js',
- TEMPERATURE: './src/js/temperature.js'
+ index: './src/index.js'
},
output: {
path: __dirname + '/dist',
@@ -59,7 +55,7 @@ module.exports = {
}),
new ZipPlugin({
path: __dirname + '/dist',
- filename: 'hvac',
+ filename: 'mixer',
extension: 'wgt',
exclude: []
})
@@ -82,6 +78,18 @@ module.exports = {
]
},
{
+ test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
+ use: [
+ {
+ loader: 'file-loader',
+ options: {
+ name: '[name].[ext]',
+ outputPath: 'fonts/'
+ }
+ }
+ ]
+ },
+ {
test: /\.(gif|png|jpe?g|svg)$/i,
use: [
'file-loader',