Breno Gazzola - Propshaft and the Modern Asset Pipeline - Rails World 2023

Discover Propshef, a new asset pipeline system for Rails that revolutionizes front-end development, improving performance, caching, and simplifying the development experience.

Key takeaways
  • Asset Pipeline redesign: Propshef is a new asset pipeline system for Rails that addresses the limitations of the original Asset Pipeline.
  • No build front-end development: Propshef introduces a no-build front-end development approach, making development and production environments similar.
  • Resolving assets: The resolver, responsible for finding assets, uses the load path and application to find the asset name and application.
  • Digested names: Propshef generates digested names for assets, which caches assets and ensures they are not downloaded again.
  • Fingerprinting: Propshef improves fingerprinting by making it more efficient and caching assets with their digested names.
  • Bundling: Propshef eliminates the need for bundling by using fingerprinting and caching assets.
  • Transpilation: Propshef eliminates transpilation by compiling assets directly and caching them.
  • Compression: Propshef uses gzip compression to reduce file sizes and improve performance.
  • Integration with Node: Propshef integrates with Node.js and modern bundlers like Webpacker and Rollup.
  • Higher performance: Propshef reduces the number of requests and improves performance by caching and optimizing assets.
  • Simpler development experience: Propshef simplifies the development experience by eliminating the need for manual configuration and reducing the number of files to manage.
  • Better asset management: Propshef provides better asset management by caching, fingerprinting, and optimizing assets.