高手解答:nuxtjs 打包vue中的sass 乱码 求高手解答 跪求牛人解答 跪求大佬解答

这是源代码

 &.service::before {

                    content: '\e85a';

                }

                &.cart::before {

                    content: '\e61d';

                }

                &.user::before {

                    content: '\e623';

                }

                &.save::before {

                    content: '\e621';

                }

                &.history::before {

                    content: '\e718';

                }

                &.feedback::before {

                    content: '\e735';

                }

 

 

 

这里是编译后的代码

 

.service[data-v-d7146c36]:before{content:""}.foot .help-center .collect .block.cart[data-v-d7146c36]:before{content:""}.foot .help-center .collect .block.user[data-v-d7146c36]:before{content:""}.foot .help-center .collect .block.save[data-v-d7146c36]:before{content:""}.foot .help-center .collect .block.history[data-v-d7146c36]:before{content:""}.foot .help-center .collect .block.feedback[data-v-d7146c36]:before{content:""}

nuxtjs 版本2.14.0  未安装node-sass  使用里面自带的sass 打包的 自带sass版本 1.32.6

网页加上

〈HEAD〉〈META CONTENT=“text/html;charset=gb2312”〉〈/HEAD〉

不行就

〈HEAD〉〈META CONTENT=“text/html;charset=GB18030”〉〈/HEAD〉

不行就

〈HEAD〉〈META CONTENT=“text/html;charset=GBK”〉〈/HEAD〉

CSS文件顶部使用@charset "utf-8"

〈HEAD〉〈META CONTENT=“text/html;charset=utf-8”〉〈/HEAD〉

可替换项

gb2312

gbk

GB18030

〈HEAD〉〈META CONTENT=“text/html;charset=utf-8”〉〈/HEAD〉
<style>
   <!--
      @charset "utf-8";
      @import url(wcss.css);
   -->
</style>

html加入: 

<meta content="text/html;charset=utf-8"/>

css加入: 

@charset utf-8