https://github.com/spektom/minify
JS and CSS minifier
https://github.com/spektom/minify
css cssminifier minify
Last synced: over 1 year ago
JSON representation
JS and CSS minifier
- Host: GitHub
- URL: https://github.com/spektom/minify
- Owner: spektom
- Created: 2014-06-18T07:29:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T13:43:07.000Z (over 6 years ago)
- Last Synced: 2025-01-20T16:53:28.042Z (over 1 year ago)
- Topics: css, cssminifier, minify
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
* [cssminifier.com](cssminifier.com)
* [cnvyr.io](cnvyr.io)
* [closure-compiler.appspot.com](closure-compiler.appspot.com)
### Prerequisites ###
* Python 3
### Usage ###
`minify.py `
For example, to minify all CSS and JS files that reside in folder "static/"
invoke the following command:
`./minify.py static/`