Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🖐 其它问题 | 发布后,chunk-vendors问题 #27

Open
penjay opened this issue Dec 30, 2019 · 2 comments
Open

🖐 其它问题 | 发布后,chunk-vendors问题 #27

penjay opened this issue Dec 30, 2019 · 2 comments

Comments

@penjay
Copy link

penjay commented Dec 30, 2019

如图,请问这些应该如何去除?没有找到来源在哪里。看起来像是element的locales,但是我看i18n.js中不是只导入了本地有的语言种类吗?
image

@FairyEver
Copy link
Member

const localeElementUI = require(`element-ui/lib/locale/lang/${locales(key)._element}`)

有可能是在这里预先 import 的

@penjay
Copy link
Author

penjay commented Dec 30, 2019

const localeElementUI = require(`element-ui/lib/locale/lang/${locales(key)._element}`)

有可能是在这里预先 import 的

我现在运行的是你的版本,没有任何更改,那不是应该只有4种语言吗?现在里面还有阿拉伯、韩文,请教有办法可以去掉吗?(只想尽量减小vendors的大小)🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants