vue-cli 打包时出现的错误
building for production...Error processing file: static/css/app.36864bcdcb0e1117ee302ffebb939a36.css(node:15116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): postcs
·
building for production...Error processing file: static/css/app.36864bcdcb0e1117ee302ffebb939a36.css
(node:15116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): postcss-svgo: Error in parsing SVG: Unquoted attribute value
Line: 0
Column: 14
(node:15116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): postcss-svgo: Error in parsing SVG: Unquoted attribute value
Line: 0
Column: 14
Char: \
报错原因就是 压缩和抽离CSS的插件中只允许 SVG 使用双引号
引入外部css文件中有svg引号问题,
譬如我引用的mui.css,所以将svg单引号改为双引号就可以解决上述问题
更多推荐
已为社区贡献2条内容
所有评论(0)