Skip to content

Commit

Permalink
Fix import error of CleanWebpackPlugin v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lqez committed Feb 19, 2020
1 parent 26b4d5e commit 888851a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/common/production.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const scssConfig = require('./scss.config');
const CleanPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const ZipPlugin = require('zip-webpack-plugin');

const pkg = require('../../package.json');
Expand Down Expand Up @@ -153,7 +153,7 @@ module.exports = {
],
},
plugins: [
new CleanPlugin(),
new CleanWebpackPlugin(),
new webpack.BannerPlugin({
banner: ({ basename }) => {
return basename.includes('min') ? minBanner : banner;
Expand Down

0 comments on commit 888851a

Please sign in to comment.