0

is there a way to minify all the JS file into a specific folder and output it into another file path? because currently i'm using a single process like this:

java -jar yuicompressor-2.4.7.jar "C:\QG\Website\YUI\dev\jqueryMain.js" -o "C:\QG\Website\YUI\prod\jqueryMain.min.js"

im using Win 10

MolarBear
  • 3
  • 3
  • Try using a `for` command to run the command on each file: http://stackoverflow.com/questions/14237548/batch-script-run-command-on-each-file-in-directory `for /r %%file in (*.js) do java -jar yuicompressor-2.4.7.jar "%%file" -o "C:\QG\Website\YUI\prod\%%~nfile.min.js"` See also: http://stackoverflow.com/questions/3215501/batch-remove-file-extension – stiemannkj1 Mar 26 '17 at 03:16
  • Yes , Now it's working! but I can't minify a specific folder – MolarBear Mar 27 '17 at 05:00

0 Answers0