~/talk

Dark Art of Webpack Bundle Tuning

Talkat JSFoo 2017 · on Saturday, 2017-09-16· [web-performance, frontend-architecture]
slides:none on file

A small Vue demo app with Bootstrap Moment Lodash OpenLayers and D3 proves concrete fixes: run webpack CLI with --json output and inspect it with webpack-bundle-analyzer and a visualizer to find duplicates and dependency roots; switch static imports to dynamic import for lazy chunks so home load drops from ~349 KB transferred to ~41 KB and overall bundles shrink (example: vendor 2 MB → 236 KB, total 5.73 MB → 2.6 MB); use tree‑shakable module builds, lodash webpack plugin, context‑replacement for Moment locales, and extract CSS into separate files.

AI-written summary · about

  1. 0:00Introduction
  2. 4:21Webpack is a dumb system
  3. 6:53Tools
  4. 11:27Demo
  5. 12:41Bundle Analyzer
  6. 15:33Lazy Loading
  7. 18:05OpenLayers Optimization
  8. 20:13D3 Selection
  9. 26:39CSS Usage
  10. 30:21Results
  11. 33:17Conclusion
  12. 34:15App Common Bundle
  13. 35:33Legacy Application
  14. 36:41Splitting Code
  15. 38:29Using CDN
  16. 39:54Question
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.