Open klren0312 opened 1 year ago
https://github.com/AndSpark/css-utf-8-plugin 给每个css文件插入@charset "UTF-8"
@charset "UTF-8"
vue.config.js
module.exports = { css: { loaderOptions: { sass: { sassOptions: { outputStyle: "expanded" } } } } }
https://github.com/PanJiaChen/vue-element-admin/issues/3526
正常情况
乱码情况
处理方法
方法1. webpack插件
https://github.com/AndSpark/css-utf-8-plugin 给每个css文件插入
@charset "UTF-8"
方法2.
vue.config.js
配置sass参考资料
https://github.com/PanJiaChen/vue-element-admin/issues/3526