Note that you need to have Java SE 1.5 or better (Java SE 1.6 recommended) installed in order to use the WebsiteCompressor.
Download the latest release, extract the archive, and copy all JAR files from the archive to your website project.
java -jar websitecompressor-.jar [options] [files]
For example, use the following commands to minify a website generated by Jekyll using the WebsiteCompressor (assuming that you placed the JAR files in a subdirectory named
_lib, which is then ignored by Jekyll):
cd /path/to/website jekyll --no-server java -jar _lib/websitecompressor-.jar --compress-css --compress-js _site
Afterwards upload the contents of the
_site folder to your webserver as usual.
WebsiteCompressor performs all compression in-place, so do not run WebsiteCompressor on your original source files! Create a copy of your website files first, run WebsiteCompressor on the copy and upload it to your webserver afterwards.
Available on GitHub: https://github.com/bmeurer/websitecompressor
Clone the project with Git by running:
$ git clone git://github.com/bmeurer/websitecompressor.git
If you come across any problems, please create a ticket and we will try to get it fixed as soon as possible.
Once you have made your commits:
Copyright © 2010-2011 Benedikt Meurer. See the LICENSE file for details.