Skip to content

Commit

Permalink
Adding clean-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Jan 7, 2018
1 parent f003e05 commit 952dfa9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"clean-webpack-plugin": "^0.1.17",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"eslint": "^4.14.0",
Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var webpack = require('webpack')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var PurifyCSSPlugin = require('purifycss-webpack')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var CleanWebpackPlugin = require('clean-webpack-plugin')
var inProduction = (process.env.NODE_ENV === 'production')

module.exports = {
Expand Down Expand Up @@ -115,6 +116,7 @@ if (inProduction) {
]),
minimize: true
}),
new CleanWebpackPlugin(['dist']),
new webpack.LoaderOptionsPlugin({
minimize: true
}),
Expand Down

0 comments on commit 952dfa9

Please sign in to comment.