Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.