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.
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.