~/lightning

How to Reduce Your Vue Bundle Size With Webpack

Lightningat VueConf US 2019 · on Wednesday, 2019-03-27· [web-performance, javascript]

Uses webpack-bundle-analyzer to inspect an enormous build and then applies concrete fixes: switch to import individual lodash methods (bundle drops 2.48 → 2.42 MB), add a moment locales alias to avoid shipping locales (→ 2.28 MB), enable the beautify loader / plugin to only pull used Vuetify bits (→ 2.0 MB), and swap to the minified vue-echarts import (→ 1.28 MB), cutting the bundle roughly in half.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Application tour
  3. 1:41Problems
  4. 2:04What is causing the large bundle size?
  5. 3:07Reduce size of Lodash
  6. 3:46Reduce size of Moment
  7. 5:06Reduce size of Vuetify
  8. 6:27Reduce size of vue-echarts
~/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.