jasonm / ngmin-rails

DEPRECATED [Was: Use ngmin in the Rails asset pipeline.]
MIT License
42 stars 13 forks source link

Issue with source maps #11

Closed TheRusskiy closed 10 years ago

TheRusskiy commented 10 years ago

In order to work with javascript source maps you add comment that looks like //# sourceMappingURL=/assets/source_maps/app/assets/javascripts/app.map in the end of your file. .js files resulting from .coffee were missing this comment. After some debugging I found that it was this preprocessor that was deleting it.

In order to solve this problem I moved this gem to "production" group, because I don't use source maps there.

I know that this is mostly ngmin parsing problem which won't be solved here, but I simply want to save other people headache by mentioning this problem.

Since this doesn't require any solution from ngmin-rails part it should be closed, I simply want it to remain here as a piece of warning/documentation.

TheRusskiy commented 10 years ago

Or should I keep it opened? I'm not sure :-)