How to make your webpack
builds 10x faster
Torsten Rüter
CTO & Co-Founder at Pixsy
React Native & Elm
Twitter: @trueterbs
Github: trueter
Photo: Jeremy Thomas
Reduce webpack scope
Use css-loader < 0.15
Use caching
https://github.com/babel/babel-loader
Use HappyPack
https://github.com/amireh/happypack/pull/15
Use DLL Bundles
Using DLL Bundles
• Two build steps
• 1. Create static assets
• 2. Create hot assets
• Use environment variable to differentiate
Gotcha:
Webpack Isomorphic Tools
Hacks
https://github.com/webpack/webpack/pull/2210
The calypso hack
https://github.com/Automattic/wp-calypso/pull/4195
And suddenly
If you’re still having issues
twitter.com/trueterbs
github.com/trueter
Thanks to
• quicksnap
• halt-hammerzeit
• amireh
• jvpr
• SimenB
And to you
Questions?

How to make your Webpack builds 10x faster