Build several javascript files into the one build file previously compressing them with Google Closure Compiler.
Switch branches/tags
Nothing to show
Clone or download
Aliaksandr Astashenkau
Aliaksandr Astashenkau Merge branch 'jm-begon-master'
Latest commit 2a5bb40 Apr 15, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
test README updated Sep 21, 2011 README updated. Nov 12, 2014 Up-to-date processing Jan 4, 2015


Make single javascript file ready for production

Very simple bash script which compresses javascript files with Google Closure Compiler online service and then creates a single file of them. CompressJS reduces file sizes and saves bandwidth with just one simple command.


Files you want to compress and add to the resulting file should be separated with spaces. The last filename is a build target.

Run next command in terminal:

$ ./ jquery-ui-1.8.16.custom.min.js chat-widget.js target.min.js

Of course you can use wildcards in file names and patterns:

$ ./ scripts/*.js target.min.js

Home page

Home page.