Metadata-Version: 2.0
Name: django-compressor-postcss
Version: 0.8.2
Summary: PostCSS support for django-compressor
Home-page: https://github.com/pithikos/django-compressor-postcss
Author: Johan Hanssen Seferidis
Author-email: manossef@gmail.com
License: MIT
Keywords: django-compressor django postcss post-processing css web-development autoprefixer
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Framework :: Django
Classifier: Topic :: Software Development :: Libraries
Classifier: Environment :: Web Environment
Classifier: Environment :: Plugins
Requires-Dist: django
Requires-Dist: django-compressor



PostCSS for django-compressor
=============================

This module will let you use PostCSS as a filter with django-compressor.
You can use any postcss plugin you wish (assuming the plugin is
installed).

Installation
------------

Install this package:

::

    pip install django-compressor-postcss

You also need to install the postcss tool itself and depending on what
plugins you plan to use, you should install those manually.

Example:

::

    sudo npm install -g postcss-cli
    sudo npm install -g autoprefixer postcss-font-magician

Configuration
-------------

Your Django's settings should look something like below.

.. code:: python

    COMPRESS_CSS_FILTERS = (
        ..
        'compressor_postcss.PostCSSFilter',
        ..
    )

    COMPRESS_POSTCSS_PLUGINS = (
        'autoprefixer',
        'postcss-font-magician'
    )

``COMPRESS_POSTCSS_PLUGINS`` determines the plugins that PostCSS will
use.


