Login Register

Gzipping all JS of Dojo Distribution

I need to create my custom version of dojo framweword all GZIPPED that I must create in a separate folder on my web server...and so that I can serve if my Browser support GZIP Encoding.

There are a packet or tool for GZIPPING all file from a folder and subfolder...???

The tool that I have found online GZIP only 1 file for time...

Tnx to all

gzip only accepts a single

gzip only accepts a single file, afaik. tar is what is used to make a single file, then gzip run on the result ...

tar -czvf dojo.tar.gz release/dojo/

for example.

Your server likely can automatically gzip file on the fly? with apache its mod_deflate or mod_gzip ...

A script could easily be derived from util/buildscripts/build_mini.sh (now in trunk) to iterate through folders and gzip any .js it encounters manually ...