← Graph

Pre-compile engine assets to shield host apps

takeaway 2 connections

Recommendation from Adrian Marin's wroclove.rb 2022 talk: pre-compile your Rails engine's CSS and JavaScript at gem build time (esbuild + Tailwind into `public/<engine>-assets/`) and expose them via a `Rack::Static` middleware in the engine class. This abstracts the whole asset pipeline away from your users — they don't need Node.js, esbuild, or Tailwind on their deploy servers.

type
recommendation
takeaway Pre-compile engine assets to shield host apps
about
The takeaway names and recommends this pattern.
takeaway Pre-compile engine assets to shield host apps
from_talk
Key recommendation from the talk's asset-pipeline section.

Provenance

Read by
2 extractions