YUI Compressor does not accept wildcard parameters, so I cannot run it like this:
C:>java -jar yuicompressor.jar *.js
But I have over 500 files and would rather not have to create a batch file like this:
C:>java -jar yuicompressor.jar file1.js -o deploy\file1.js C:>java -jar yuicompressor.jar file2.js -o deploy\file2.js ... C:>java -jar yuicompressor.jar file500.js -o deploy\file500.js
And of course my file names are not in such uniform way.
Is there way to automate this without writing any code? 🙂
I might go for a makefile (I think it would probably be more maintainable long term), but if you want a quick-n-dirty Windows batch command something like the following should work: