Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.24 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.24 KB

CodeIgniter CSSMin Spark

This is a CodeIgniter Spark that provides cssmin.php, a PHP implementation of YUI Compressor by Julien Lecomte.

Usage

As a spark

First, install the spark by running

$ php tools/spark install cssmin

Then, in your code:

$this->load->spark('cssmin/1.0.0');

$minified = minifycss($source);

Directly into your project

First, install it by copying libraries/cssmin.php into application/libraries and helpers/cssmin_helper.php into application/helpers.

$this->load->helper('cssmin');

$minified = minifycss($source);

References

License

Permission is hereby granted to use the PHP version under the same conditions as the YUICompressor.

Copyright