Team Qameta Webpack

Howto migrate from Webpacker to jsbundling-rails in Ruby on Rails

Using jsbundling-rails for JavaScript pipeline

A lot of Ruby on Rails applications created with Ruby on Rails version 5.x or 6.x or even upgraded from the previous versions are using webpacker as their primary asset pipeline. But now as webpacker has retired, it is time to move on. jsbundling-rails is or will be the most obvious step to go. Don’t try to move to importmap-rails directly, as you may encounter more problems you have to solve.

Howto migrate from Webpacker to cssbundling-rails in Ruby on Rails for CSS

Using cssbundling-rails for CSS pipeline

A lot of Ruby on Rails applications created with Ruby on Rails version 5.x or 6.x or even upgraded from the previous versions are using webpacker as their primary asset pipeline. But now as webpacker has retired, it is time to move on. cssbundling-rails is or will be the most obvious step to go.

Howto remove sprockets-rails from you Ruby on Rails project

Remove Sprockets from Ruby on Rails

Before removing sprockets-rails from dependencies of your Ruby on Rails project, check whether you are surfing images or fonts using sprockets through assets paths like:

… or any other assets except Style Sheets (CSS):

If you are using cssbundling-rails the sprockets default path for Style Sheets is used by default: