Skip to content

Commit 8437142

Browse files
renovate[bot]renovate-botAdam Butterworth
authored
fix(deps): update dependency clean-webpack-plugin to v3 (#8)
* fix(deps): update dependency clean-webpack-plugin to v3 * Update webpack.prod.config.js Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Adam Butterworth <[email protected]>
1 parent 42331ef commit 8437142

File tree

3 files changed

+75
-9
lines changed

3 files changed

+75
-9
lines changed

config/webpack.prod.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const Merge = require('webpack-merge');
44
const path = require('path');
55
const Dotenv = require('dotenv-webpack');
6-
const CleanWebpackPlugin = require('clean-webpack-plugin');
6+
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
77
const HtmlWebpackNewRelicPlugin = require('html-webpack-new-relic-plugin');
88
const HtmlWebpackPlugin = require('html-webpack-plugin');
99
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -139,9 +139,7 @@ module.exports = Merge.smart(commonConfig, {
139139
// Specify additional processing or side-effects done on the Webpack output bundles as a whole.
140140
plugins: [
141141
// Cleans the dist directory before each build
142-
new CleanWebpackPlugin(['dist'], {
143-
root: process.cwd(),
144-
}),
142+
new CleanWebpackPlugin(),
145143
// Writes the extracted CSS from each entry to a file in the output directory.
146144
new MiniCssExtractPlugin({
147145
filename: '[name].[chunkhash].css',

package-lock.json

Lines changed: 72 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"babel-plugin-react-intl": "4.3.0",
4242
"babel-plugin-transform-imports": "2.0.0",
4343
"babel-polyfill": "6.26.0",
44-
"clean-webpack-plugin": "0.1.19",
44+
"clean-webpack-plugin": "3.0.0",
4545
"copy-webpack-plugin": "5.1.1",
4646
"css-loader": "3.4.2",
4747
"cssnano": "4.1.10",

0 commit comments

Comments
 (0)