Master the Rails Asset Pipeline: Best Practices for Apps & Gems
summary
Explains exact fixes not fluff: shows three ways to ship assets in gems (pin vendor files for importmaps, bundle JS into the gem, or publish an npm package), compares Sprockets vs Propshaft (Propshaft only does four things: fingerprinting, dev server, minimal transpile, load paths), demos with AO and Marksmith sample repos so code actually runs, calls out surprising duplication (37signals included) and when middleware, rake tasks, or symlinks are practical.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:45Asset pipeline importance
- 3:10Problems solved
- 5:59Modern pipeline options
- 8:07Choosing pipeline tools
- 9:11Rails plugins with assets
- 10:56Library author requirements
- 11:17Import maps for JS
- 11:59NPM packages in gems
- 13:22JS bundling in engines
- 14:23JS bundling integration
- 15:47Unorthodox asset distribution
- 17:52Middleware asset serving
- 19:17CSS with Propshaft








