Source Cards in Rails 4-5

I was searching for how to use the source maps for sass or coffescript in a rails 4 or rails 5 application.

However, since I found some links, such as this one , which was published some time ago, or others confused me, so I would appreciate if you can give me some feedback on how to sort them correctly.

Do I need to create a gem for this? for example this

Do I need to add these lines to my assets?

/*# sourceMappingURL=/assets/source_maps/application.css.scss.map */
//# sourceMappingURL=/assets/source_maps/app/assets/javascripts/notes.map

As I point out, I use Firefox on Ubuntu (I say this because there are some resources that specifically say for Chrome, and I'm not quite sure if the same things apply in Firefox too)

+4
source share

Source: https://habr.com/ru/post/1672454/


All Articles