我需要在Node中运行多个UglifyJS2脚本。我已经将要运行的命令添加到批处理文件中,它可以正常运行。
但是当我添加第二个命令,比如 "cd ..",该命令就不能被执行!非常令人困惑。
cd go somewhere
uglifyjs ..\somescript -o ..\somefile.min.js --source-map ..\somemap.js.map --screw-ie8
cd ..
我希望能够从同一个批处理文件运行多个不同的脚本。
uglifyjs ..\somescript1 -o ..\somefile1.min.js
uglifyjs ..\somescript2 -o ..\somefile2.min.js
uglifyjs ..\somescript3 -o ..\somefile3.min.js
我不确定这是在Node、Uglify还是预期行为中的问题。