I'm using Grunt to build a project: uglify for authored JS files and then concat with libs that are already minified.
The minified libs already have sourcemaps.
Is it possible to merge them with the ones generated by uglify for the authored JS files?
The final app.js
file is made up of blocks of code ending with the sourcemap comment like this:
[Minified library code]
//# sourceMappingURL=library.map
[Minified authored code]
//# sourceMappingURL=script.map
That messes up the minified->original matching. Random files and lines are associated with code elsewhere in the original files.
Is there anything I can do without having to use separate files?
Thanks.