aboutsummaryrefslogtreecommitdiff
path: root/test/application/webpack.config.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-08-20 01:50:27 +0300
committerValentin Popov <info@valentineus.link>2019-08-20 01:50:27 +0300
commit809a5efb9db4284b0124c75fbaec34d3dd22e7bc (patch)
tree829b6c61cfbb72d2b79487b2f55e9b1636cb98c7 /test/application/webpack.config.js
parent22989465538f64e86fe5ac0235e322133b95056c (diff)
downloadelectron-hot-reload-809a5efb9db4284b0124c75fbaec34d3dd22e7bc.tar.xz
electron-hot-reload-809a5efb9db4284b0124c75fbaec34d3dd22e7bc.zip
Fixed build system
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'test/application/webpack.config.js')
-rw-r--r--test/application/webpack.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/application/webpack.config.js b/test/application/webpack.config.js
index a4c686b..c1d23e8 100644
--- a/test/application/webpack.config.js
+++ b/test/application/webpack.config.js
@@ -1,3 +1,4 @@
+const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
@@ -12,6 +13,9 @@ const mainConfig = {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},
+ plugins: [
+ new CleanWebpackPlugin()
+ ],
module: {
rules: [{
test: /\.js$/,