Uglifyjs does not generate working map file when uglifying browserify output -
i've run browserify this:
browserify js/app.js -d | exorcist js/bundle.js.map > js/bundle.js
when load in chrome, sources map file fine. when uglify this:
uglifyjs js/bundle.js --in-source-map js/bundle.js.map --source-map-url bundle2.js.map --source-map js/bundle2.js.map -o js/bundle2.js -p 1
the sources map file not work. tries load sources /js/js, instead of /js. have fiddled -p parameter, , every other parameter documented on commandline here:
https://github.com/mishoo/uglifyjs2
the way work cd js directory , run commands there. lame, works.
Comments
Post a Comment