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

第 52 题:webpack打包有哪些优化? #73

Open
ravencrown opened this issue Oct 9, 2019 · 0 comments
Open

第 52 题:webpack打包有哪些优化? #73

ravencrown opened this issue Oct 9, 2019 · 0 comments

Comments

@ravencrown
Copy link
Owner

webpack 打包优化

  • 速度分析(speed-measure-webpack-plugin)
  • 体积分析(webpack-bundle-analyzer)
  • 缓存(cache-loader,babel-loader开启缓存)
  • 多实例多线程打包(happyPack,thread-loader,parallel-loader )
  • tree-shaking
  • 分包(Dllplugin,设置externals)
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

1 participant