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

打包后的app.js文件太大 #24

Open
dingtwo opened this issue May 25, 2017 · 2 comments
Open

打包后的app.js文件太大 #24

dingtwo opened this issue May 25, 2017 · 2 comments

Comments

@dingtwo
Copy link

dingtwo commented May 25, 2017

开发环境下编译后的app.js有2.3Mb, 就算把element用cdn引入, 把bootstrap.js中引用的jq, lodash都注掉,编译之后app.js也有1Mb多, 打包之后app.js是500多k, 也不小,有什么好的解决办法吗

@rushairer
Copy link

应该是没有了

@lvxianchao
Copy link

@dingtwo 按需加载啊,生产环境要 npm run prod

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

3 participants