Source Maps by UglifyJS 2 with New Prefix
Living on the bleeding edge means more to learn. I was learning about creating source maps by using UglifyJS. For some reason, the uncompressed JavaScript source codes were not able to load. After some diff
with a working version from Source Maps 101, the problem is just resulting of one character difference. With newly updated UglifyJS v2.3.6, SourceMapping pragma has changed to //#:
//# sourceMappingURL=script.uglify.js.map
but my Chrome browser lags behind. It recognizes source maps as //@
:
//@ sourceMappingURL=script.uglify.js.map
I did not use the latest or dev build, the current Chrome browser I am using is yet to support //#
. What I really need is Chrome Canary. Unfortunately, it is not available for Linux :(.