We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
[vue] 如何解决vue打包vendor过大的问题?
The text was updated successfully, but these errors were encountered:
1、在webpack.base.conf.js新增externals配置,表示不需要打包的文件,然后在index.html中通过CDN引入
externals: { "vue": "Vue", "vue-router": "VueRouter", "vuex": "Vuex", "element-ui": "ELEMENT", "BMap": "BMap" }
2、使用路由懒加载 官网
Sorry, something went wrong.
开启gzip压缩
CDN tree-shaking splitChunksPlugin commonChunksPlugin 路由懒加载
1、在webpack.base.conf.js新增externals配置,表示不需要打包的文件,然后在index.html中通过CDN引入 externals: { "vue": "Vue", "vue-router": "VueRouter", "vuex": "Vuex", "element-ui": "ELEMENT", "BMap": "BMap" } 2、使用路由懒加载 官网
CDN引入会有些许问题,https模式下会有安全验证,使得cdn引入失败。
No branches or pull requests
[vue] 如何解决vue打包vendor过大的问题?
The text was updated successfully, but these errors were encountered: