Category: Closure compiler

Bash + Google Closure Compiler

on Jan 04, 2013 in Bash, Closure compiler, Projects

Usually when the project is ready for production developer needs to minimize sourse files in order to reduce download time and save bandwidth. There are a number of perfect compressors which can significantly lower the file sizes.

The following bash script is a simple tool I use to get my project ready for the live. You run the script with the list of names of javascript files you want to include into resulting buildscript, and in the end you get all this files compiled and appended to the one resulting file.