
深入浅出Webpack 1-5 使用pulugin extract-text-webpack-plugin 提取css报错
DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
/Users/liuyi/Projects/webpackdemo/node_modules/webpack/lib/Chunk.js:846
打开github项目地址 https://github.com/webpack-contrib/extract-text-webpack-plugin
原因是 Since webpack v4 the extract-text-webpack-plugin
should not be used for css. Use mini-css-extract-plugininstead.
使用方法
https://www.npmjs.com/package/mini-css-extract-plugin