I’ve been finally moving some of my Rails applications from Rails 5.2 to Rails 6 and I always seem to get caught up on the webpacker CSS locations. It’s not uncommon to spend a lot of time figuring out where the CSS went, and why it’s not being served.
Webpacker then added two new directives:
One change made to
config/initializers/assets.rb is the configuration line:
Rails.application.config.assets.paths << Rails.root.join('node_modules')
This means that Sprockets will look for CSS or images in your
Comments or Questions? Let me know how your experience went below.