aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js26
1 files changed, 18 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js
index a251411..e6ed2ee 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -7,13 +7,23 @@ module.exports = {
},
module: {
rules: [{
- test: /\.js$/,
- exclude: /node_modules/,
- use: 'babel-loader'
- }]
+ test: /\.js$/,
+ exclude: /node_modules/,
+ use: 'babel-loader'
+ },
+ {
+ test: /\.html$/,
+ use: [{
+ loader: 'html-loader',
+ options: {
+ minimize: true
+ }
+ }],
+ }
+ ]
},
- devServer: {
- contentBase: [ './' ],
- watchContentBase: true
- }
+ devServer: {
+ contentBase: ['./'],
+ watchContentBase: true
+ }
};