I need to run several UglifyJS2 scripts with Node. I've added the command I want to run to a bat file and it runs OK.
When I add a second command, like "cd ..", the command isn't executed! Very confusing.
cd go somewhere
uglifyjs ..\somescript -o ..\somefile.min.js --source-map ..\somemap.js.map --screw-ie8
cd ..
I'd like to be able to run several different scripts from the same bat file.
uglifyjs ..\somescript1 -o ..\somefile1.min.js
uglifyjs ..\somescript2 -o ..\somefile2.min.js
uglifyjs ..\somescript3 -o ..\somefile3.min.js
I'm not sure whether this is an issue in Node, Uglify, or expected behavior.