Moving Rails CSS From Sprockets to Propshaft

· fastruby.io · Nov. 26, 2026, 4:31 p.m.
Summary
This article discusses the migration process of Ruby on Rails applications from using Sprockets for CSS asset management to employing Propshaft and cssbundling-rails. The author provides a detailed guide on how to replace Sprockets with Propshaft, convert CSS manifests to Sass entry points, and address common issues faced during the migration. Key changes include updating the Gemfile, removing deprecated configurations, and ensuring that CSS builds properly in different environments. The article is invaluable for developers looking to modernize asset management in their Rails applications.