Skip to content

构建出的demo.html 非英文字符显示乱码 #1765

Closed
@haveam

Description

@haveam

Version

3.0.0-rc.3

Reproduction link

https://codepen.io/anon/pen/gKJeVj

Steps to reproduce

1.添加一个 TestComponent.vue 文件,内容如下:

<template>
  <h1>测试Hello!</h1>
</template>
  1. 执行:vue build --target lib --name myLib TestComponent.vue
  2. 运行当前目录下的文件预览: ./dist/demo.html

What is expected?

期望正常显示英文以外的字符,如:测试Hello!

What is actually happening?

实际显示的是乱码为:����Hello! or 测试Hello!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions