CleanWebpackPlugin is not a constructor解决方法
现在cleanwebpackplugin已经升级到了3.0.0了,所以以前的方法并不适用了。
新的方法:
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const webpackConfig = {
plugins: [
/**
* All files inside we...
原创
2019-07-19 20:17:17 ·
839 阅读 ·
1 评论