0–100 in two seconds — speed up webpack

gvidon
gvidon
Feb 1, 2017 · 3 min read

The Problem

The bigger your ES application becomes the longer it takes to webpack to build a bundle. No surprise here.

Possible solutions

Webpack cache

https://webpack.github.io/docs/configuration.html#cache

HappyPack

https://github.com/amireh/happypack

DLL

https://github.com/webpack/docs/wiki/list-of-plugins#dllplugin

HardSourcePlugin

Here comes the cavalry!

Conclusion

Combining DllPLugin with HardSourcePlugin lets us forget about long builds. Seriously. That’s true for local developers environment and somehow true for third parties, like CI.


ottofeller

OttoFeller is a software company specializing in complex projects and online solutions.

gvidon

Written by

gvidon

natural order

ottofeller

OttoFeller is a software company specializing in complex projects and online solutions.