webpack日志更新之后,
手动配置 webpack时出现了一些变动,
原先配置 cleanWebpackPlugin的方式被作为更改。
具体修改如下:
const webpackConfig = {
plugins: [
/**
* All files inside webpack’s output.path directory will be removed once, but the
* directory itself will not be. If using webpack 4+'s default configuration,
* everything under <PROJECT_DIR>/dist/ will be removed.
* Use cleanOnceBeforeBuildPatterns to override this behavior.
*
* During rebuilds, all webpack assets that are not used anymore
* will be removed automatically.
*
* See Options and Defaults
for information
*/
new CleanWebpackPlugin(),
],
};
webpack error: cleanWebpackPlugin
最新推荐文章于 2023-02-04 21:10:44 发布