Rails 8 assets: Break down of how Propshaft and importmap-rails work together | Radan Skorić's website
07-Mar-2025 136
I almost gave up and it was actually so simple.
I wanted to change default asset organisation on a fresh Rails 8 application with the default set up: Propshaft + importmap-rails gems. And I just couldn’t get it to work. Frustrating.
I looked at the official docs of both gems. They don’t talk about how the two gems work together so that didn’t help. I searched for articles explaining it but what I found was confusing. Some of them even talked about which one of them you should choose as if they’re alternatives. As you’re about to learn very soon, that makes no sense since they have exactly zero overlap in functionality. They’re perfectly complementary.
With growing frustration, I realized one final approach remained. It can be hard and time consuming but it absolutely always works.
Rails 8 assets: Break down of how Propshaft and importmap-rails work together | Radan Skorić's website #ruby #rubydeveloper #rubyonrails #Rails #assets: #Break #Propshaft #importmap-rails #together #Radan #Skorić's #website #assets: #importmap-rails #website https://rubyonrails.ba/link/rails-8-assets-break-down-of-how-propshaft-and-importmap-rails-work-together-radan-skoric-s-website