~/talk

How to Pack your Webpack

Talkat Frontend Love 2020 · 2020-10-01..10-02· [javascript, developer-experience]
slides:none on file

Shows how to use typescript webpack config and turn the config into a function that reads NODE_ENV so builds default to production, recommends Babel + preset-typescript over ts-loader, and sets babel loader with cacheDirectory: true and include only src to avoid transpiling node_modules. Claims removing an unnecessary lint loader cuts a build from 40s → 12s. Teaches browserslist RC per env, dynamic imports with prefetch, CSS extraction (mini-css-extract / treat), measure with Lighthouse and check modules on bundlephobia.

AI-written summary · about

  1. 0:00Intro
  2. 0:55Create the config
  3. 2:28Make the mode configurable.
  4. 4:29Set your entry
  5. 5:07Set your output
  6. 6:23Set up babel- loader
  7. 10:58Set up @babel/preset- env and use a .browserslistre
  8. 15:15Set up a CSS solution
  9. 17:51Configure bundle optimizations
~/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.