-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
使用externals减少build文件大小无效 #1409
Comments
Open
如何处理的?求教? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:
v2.1.4
问题描述:
npm run build后打包文件过大,导致第一次加载时页面加载慢。
解决方案:
在vue.config.js中配置externals,实现打包时排除相关组件,在index.html中通过cdn外部引入,但打包时仍然把排除后的组件打包进去。
截图&代码:
友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered: