~/talk

How Sprockets Works

Talkat EuRuKo 2016 · 2016-09-23..09-24· [ruby-on-rails]
slides:none on file

Explains Sprockets as a pipeline of concrete components: processors, environment, manifest with processors returning data+metadata, bundle and compressor roles, and source maps; contrasts on-the-fly compilation in development with precompile + manifest lookup in production to avoid repeated work. Shows Rails integration via sprockets-rails and the precompile list validation. Gives two real extensions used at Shopify: npm directive, SVG→PNG transform and shows how a transformer or directive is registered and used.

AI-written summary · about

  1. 0:00Introduction to Sprockets
  2. 3:19Why asset pipeline needed
  3. 6:56Sprockets core components
  4. 10:14Processors and transformers
  5. 13:53Manifest and precompilation
  6. 16:28Environment and caching
  7. 18:34Rails integration
  8. 21:10Executing JavaScript in Ruby
  9. 23:16Asset serving in development
  10. 27:32Production vs development
  11. 27:54Extending Sprockets
  12. 30:27Importance of understanding tools
~/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.