-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for coffee-script source maps #179
Comments
Unfortunately, for the time being Connect-Assets is heavily dependent on Snockets and all compilation goes through it. For that reason, I highly doubt there will be a 2.x version of CA that supports this. A lot of things are changing with v3, so I'll add it to that milestone for now and we can evaluate if it'll make it in. |
Yes! Source maps are awesome. That's about all I know about source maps. Do you have a good resource to educate me? :) |
@adunkman Yep :) have a look at http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ Imagine, when a Javascript error is thrown, instead of getting Javascript line number, you'll get the line number of your Coffeescript file. That's really useful for debug |
As a developer, who uses connect-assets, I'd find this incredibly useful. As it stands debugging is quite a pain. |
Would it be safe to say that source maps should only be served when in development, not in production? |
Sounds good to me having it dev only |
@adunkman For me it's quite the opposit. In production I usually minify my javascript making debugging impossible. |
Bump. |
|
v3 has changed slightly; it now depends on |
That mincer issue is outdated (architecture changed since 0.5.0), and implementation was not ideal. I'm not sure, that it can be merged. The most easy way is to wait until sprockets 3.0 released. Then it will be more clear how to port sourcemaps support to mincer properly. |
Any news in this? |
Seems that mincer now supports that feature. This is currently the only reason holding me back to use this. |
Any update on this? How to enable generating source maps in connect-assets? Seems Mincer now supports it, as mentioned by @domachine. Without source maps debugging minified assets is impossible. |
I haven’t made the time to make it happen in connect-assets, but pull requests are always welcome! |
Hi everyone, great to see that this module isn't dead already :)
That would great if you could generate source maps with coffee-script files at compile. It's now available with CS 1.6. Maybe it's more a snockets enhancement ?
The text was updated successfully, but these errors were encountered: