Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 653 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 653 Bytes

minify

This script minifies all recently changed CSS and JS files placed under the given path, then it goes, and updates all HTML files that reference them by replacing URL argument of format "v20140125-1013" with the latest timestamp.

The following Internet services are in use by this script:

Prerequisites

  • Python 3

Usage

minify.py <static files prefix>

For example, to minify all CSS and JS files that reside in folder "static/" invoke the following command:

./minify.py static/