~/talk

Webpacker vs Asset Pipeline

Talkat RailsConf 2019 · 2019-05-01..05-03· [frontend-architecture, javascript]
links:none on file
slides:none on file

Concrete comparison: Webpacker is a Rails wrapper around Webpack and actually builds a dependency graph so duplicate code is eliminated, while Sprockets concatenates via transformers/processors/compressors and can duplicate imports unless configured. Webpack uses loaders to turn .vue .sass and images into static files, outputs to public/packs with useful map files, and keeps source assets under app/javascripts/packs. At Nift the team keeps most JS in Rails partials and this mixed approach works for their mostly static app.

AI-written summary · about

  1. 0:00Introduction to Webpacker
  2. 1:51The Rails asset pipeline
  3. 3:16Extending sprockets
  4. 5:26Introduction to Webpack
  5. 6:56Webpacker loaders
  6. 9:16Asset outputs and locations
  7. 11:00Creating components
  8. 12:33Bundling strategies
  9. 15:28Conclusion and Q&A
~/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.