Skip to content

gears/gears-clean-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gears-clean-css

clean-css compressor for Gears. This package already includes the clean-css source code for you, so you don't need to worry about installing it yourself.

Bundled clean-css version: 0.6.0

Installation

Install gears-clean-css with pip:

$ pip install gears-clean-css

Requirements

gears-clean-css requires node.js to be installed in your system.

Usage

Add gears_clean_css.CleanCSSCompressor to environment's compressors registry:

from gears_clean_css import CleanCSSCompressor
environment.compressors.register('text/css', CleanCSSCompressor.as_handler())

If you use Gears in your Django project, add this code to its settings:

GEARS_COMPRESSORS = {
    'text/css': 'gears_clean_css.CleanCSSCompressor',
}

About

clean-css compressor for Gears

Resources

License

Stars

Watchers

Forks

Packages

No packages published