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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -