~/talk

A tale of two front-end development environments: or how bend npm3 to your will

Talkat npm camp 2016 · on Saturday, 2016-07-30· [frontend-architecture, javascript]
slides:none on file

Uses webpack and the webpack bundle size analyzer to pin down duplicate React installs, finds React 15.3 at top level and React 14.8 nested, and shows npm ls and npm dedupe behavior under npm3 flat installs. Starts with an 800k bundle for a Bike Lane Go example and cuts it to 136k with resolve aliases, webpack.optimize.DedupePlugin and switching to production React builds. Demonstrates a vendor bundle approach for Firefox Activity Stream using libraryTarget (var and commonjs) to integrate npm dependencies into a legacy loader and it works.

AI-written summary · about

  1. 0:00Introduction
  2. 0:14Back in time
  3. 2:44About me
  4. 4:22Dependency management
  5. 5:35A more productive approach
  6. 6:22Using any module loader
  7. 6:40Making a directory
  8. 7:52Module loading
  9. 8:27User experience
  10. 12:34Bundle detective
  11. 15:34Why do duplicates happen
  12. 18:45Webpack hacks
  13. 20:46Legacy systems
  14. 22:37Proxy
  15. 24:51Conclusion
~/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.