解决 extract-text-webpack-plugin 分离 css 报错的问题

编译出现:css

\color{red}{Tapable.plugin\ is\ deprecated.\ Use\ new\ API\ on\ `.hooks`\ instead}


是由于安装的 extract-text-webpack-plugin 的版本不支持 webpack4.0+webpack


换成: npm install --save-dev extract-text-webpack-plugin@nextweb


出现以下问题时:npm

\color{red}{Path\ variable\ [contenthash]\ not\ implemented\ in\ this\ context:\ [name].[contenthash].css}

Path variable [contenthash] not implemented in this context: [name].[contenthash].css

能够将 [contenthash] 改为 [hash],就能够了this


[随手笔记,感谢阅读,不对之处请指教,谢谢]cdn

相关文章
相关标签/搜索