Bundle (combine) minified javascript files

I learned I can use Google Closure compiler to minify and bundle a set of javascript files into one using the command line:

java -jar C:\google-closure\compiler-latest\compiler.jar --js ts/mymodule.js --js ts/app.js --js_output_file ts/app.min.js

I would like to define all files to combine, and their internal order in a text file or similar. Can I do that somehow?

2 comments

I'm trying to do this with the new file watchers features.  I was able to minify one file, but not merge all files of a scope.

Any idea?

TIA

Greg

0
Is it possible to compile a dir with file watcher?
0

Please sign in to leave a comment.