-
importmap-rails
Use ESM with importmap to manage modern JavaScript in Rails without transpiling or bundling.
-
Scout Monitoring
Rennaisance engineers rejoice! 1 gem 5 min to app monitoring. 5-minute onboarding. No sales team. Devs in the support channels. No DevOps team required. Get the free app insights every engineer deserves with Scout Monitoring.
So I read through the DartSass Rails documentation where it mentioned that bundle exec rails dartsass:build will generate the CSS files, and that rails dartsass:watch will monitor for changes.
It worked, but JS changes were not coming through. Digging into the Importmap docs (see 'sweeping the cache', it monitors changes according to the setting config.importmap.cache_sweepers. So, by adding the locations where I have my JS files, I also got JS changes passed through.