Skip to content

Commit

Permalink
Chore: Update CleanWebpackPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Sapegin committed Oct 28, 2019
1 parent 166fea8 commit 9804259
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 7 deletions.
55 changes: 51 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"acorn-jsx": "^5.1.0",
"ast-types": "~0.13.2",
"buble": "0.19.8",
"clean-webpack-plugin": "^1.0.1",
"clean-webpack-plugin": "^3.0.0",
"clipboard-copy": "^3.1.0",
"clsx": "^1.0.4",
"common-dir": "^2.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const MiniHtmlWebpackPlugin = require('mini-html-webpack-plugin');
const MiniHtmlWebpackTemplate = require('@vxna/mini-html-webpack-template');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const merge = require('webpack-merge');
const forEach = require('lodash/forEach');
Expand Down Expand Up @@ -88,7 +88,7 @@ module.exports = function(config, env) {
chunkFilename: 'build/[name].[chunkhash:8].js',
},
plugins: [
new CleanWebpackPlugin(['build'], {
new CleanWebpackPlugin({
root: config.styleguideDir,
verbose: config.verbose === true,
}),
Expand Down

0 comments on commit 9804259

Please sign in to comment.