A Java program to fingerprint and minimize web assets.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GenerateAssets.java
README.md

README.md

Generate Assets

This class is used to create 'assets' for an 'asset pipeline', similar to the asset pipeline implemented by Ruby on Rails. It does the following:

  1. Delete old assets from destination folder (public/assets).
  2. Create new asset subfolders, if necessary.
  3. Process image files: calculate MD5 hashes, fingerprint, move to public/assets/img
  4. Concatenate Javascript files, minimize, fingerprint and move to public/assets/js
  5. Concatenate css files, minimize, fingerprint and move to public/assets/css
  6. Write out assets.txt.

Usage

javac GenerateAssets.java

java GenerateAssets

License

Copyright © 2015 Mobalean LLC

Requirements

Java 1.7