问题
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, ©
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