由webpack问题引起的bug
Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
原因:
extract-text-webpack-plugin还不能支持webpack4.0.0以上的版本。
解决办法:
npm install –save-dev extract-text-webpack-plugin@next
会下载到+ extract-text-webpack-plugin@4.0.0-beta.0
然后在打包就正常了
webPack 升级到 4.3.0 导致 extract-text-webpack-plugin 无法使用
报错:Path variable [contentHash:8] not implemented in this context: styles.[contentHash:8].css
config.plugins.push(
new ExtractPlugin('styles.[md5:contentHash:hex:8].css')
//将[contentHash:8].css改成[md5:contentHash:hex:8].css
)