Skip to main content

clean-css compressor for Gears

Project description

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',
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gears-clean-css-0.1.2.tar.gz (152.6 kB view details)

Uploaded Source

File details

Details for the file gears-clean-css-0.1.2.tar.gz.

File metadata

File hashes

Hashes for gears-clean-css-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2dcba14b5620c688a0c55961a9ef5ff9e482c1e4e26d0b188fada73f576793b2
MD5 d4d7bb6dcea5d267ffc2b90813a24588
BLAKE2b-256 48f35793109cc9c4f2ddc34b1944cf26869cc8c92d81383b42307711078eda19

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page