我使用webpack的extract-text-webpack-plugin插件打包生成css文件的时候报错

Tapable.plugin is deprecated. Use new API on `.hooks` instead

Tapable.plugin is deprecated. Use new API on `.hooks` instead 

后来查了资料才发现 这个插件不支持webpack4.0版本 我的确实是4.0版本的

Tapable.plugin is deprecated. Use new API on `.hooks` instead 

提示插件要更新到最新的beta版本才可以

npm install [email protected]

更新完之后 在运行 npm run build就可以了

相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2021-05-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2021-04-11
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案