webpack打包css报错

个人记录:

错误一:SyntaxError: Unexpected token ;

token

个人不注意导致,数组不能用;号分隔

错误二:Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead

通过网上查找:貌似是webpack4和extract-text-webpack-plugin的兼容性问题

解决方案:npm install extract-text-webpack-plugin@next --save-dev

猜你喜欢

转载自blog.csdn.net/weixin_39032575/article/details/80644566