Closed muuvmuuv closed 5 years ago
As noted in the release notes for v3.0.0
, you'll need to change to a named export. In your case:
import { CleanWebpackPlugin as CleanPlugin } from 'clean-webpack-plugin'
Also, as of v2
this plugin will by default clean your webpack's output.path
directory without any additional configuration.
You can replace:
new CleanPlugin({
cleanOnceBeforeBuildPatterns: ['dist'],
}),
with:
new CleanPlugin(),
Issue description or question
Updated my packages and node and now getting this error:
Webpack Config
Environment
Run:
npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack