VueJS: Build process inserts junk characters

喜夏-厌秋 提交于 2021-02-11 13:56:31

问题


Problem

During development (yarn run dev) everything looks and operates normally. When I yarn run build, the resulting dist includes a bunch of junk characters. For example, &copy becomes © and — becomes —.

Context

  • "vue": "2.3.2"
  • "vue-meta": "^1.5.8"
  • "vue-router": "^2.5.3"
  • "vuex": "^2.3.1"

回答1:


Ensure encoding is set to utf-8 in your index.html page. It should have a head entry of:

<meta charset="utf-8">



来源:https://stackoverflow.com/questions/54789038/vuejs-build-process-inserts-junk-characters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!