Reputation: 14851
We are using the latest version of Sprockets on Rails 3.0.10. Everything is working great, and overall it's been a smooth and problem free deployment, but we do have one minor annoyance that I hope there is a simple solution for.
When javascript files are combined together, there's no simple, straightforward way to determine what file a particular bit of javascript came from when I'm debugging in a browser.
We use SASS as well and I love the way that it includes comments indicating where the rule can be found in my original CSS file.
Are there options or flags I can set on Sprockets to allow similar behaviour? (say, an auto-generate comment at the beginning of each included file indicating it's original path)
Upvotes: 0
Views: 166
Reputation: 25994
In case you can't solve your problem, you could try using Rails 3.1 : the asset pipeline isn't compiled in the development environment, so you can immediately see in which javascript file your problem is.
Upvotes: 1