/compressJS.sh

Build several javascript files into the one build file previously compressing them with Google Closure Compiler.

Primary LanguageShell

CompressJS - make single javascript file ready for production

Very simple bash script which compresses javascript files with Google Closure Compiler and then make a single file of them. Reduce file sizes and save bandwidth with just one simple command.

Usage

Files you want to compress and add to the resulting file are separated with spaces. Run next command in terminal:

$ ./compressjs.sh jquery-ui-1.8.16.custom.min.js chat-widget.js templ.min.js

Sure you can use wildcards in file names:

$ ./compressjs.sh scripts/*.js

Home page

Home page.