What problem does it solve?
This Skill provides expert guidance on managing assets (CSS, images, fonts) in Rails 8+ applications using the modern Propshaft asset pipeline, ensuring efficient delivery and cache-busting.
Core Features & Use Cases
- Asset Pipeline Management: Understand and configure Propshaft for Rails 8+.
- CSS Organization: Implement best practices using
@layer and CSS custom properties.
- Asset Referencing: Correctly link to images, fonts, and stylesheets in views and CSS.
- Deployment & CDN: Configure assets for production deployment and CDN integration.
- Migration: Migrate smoothly from the older Sprockets asset pipeline.
- Use Case: You need to organize your application's CSS files, ensure proper cascade order with
@layer, and set up fingerprinting for production deployment.
Quick Start
Use the propshaft skill to add a new stylesheet named 'custom_styles.css' to the application.