Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/subzane/css-compressor
Compresses a series of CSS files into one
https://github.com/subzane/css-compressor
Last synced: 26 days ago
JSON representation
Compresses a series of CSS files into one
- Host: GitHub
- URL: https://github.com/subzane/css-compressor
- Owner: SubZane
- Created: 2013-03-08T18:47:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T19:11:34.000Z (almost 12 years ago)
- Last Synced: 2024-12-11T21:07:13.020Z (26 days ago)
- Language: PHP
- Size: 98.6 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP CSS Compressor
==============Compresses an array of CSS files into one.
###How it works
- If no compressed file exist, it creates one
- If the compressed file is older than one of the original files in creates a new compressed file
- If the compressed file is newer than the original files, it simply deliveres the compressed file###How to use it
Configure the variables:
- $css_cache_file (The full path to where you want to store you compressed CSS)
- $css_path (The full path to your original CSS files)
- $css_files (An array of your CSS files, the filenames)Include csscompressor.php as a CSS file in your HTML document.