PostCSS support for django-compressor
Project description
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.
COMPRESS_CSS_FILTERS = (
..
'compressor_postcss.PostCSSFilter',
..
)
COMPRESS_POSTCSS_PLUGINS = (
'autoprefixer',
'postcss-font-magician'
)
COMPRESS_POSTCSS_PLUGINS determines the plugins that PostCSS will use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_compressor_postcss-0.8.2-py2.py3-none-any.whl.
File metadata
- Download URL: django_compressor_postcss-0.8.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c443412f01f8abbb9f138e12ca2342c35d27208c4475ece8b437ef9961c3f012
|
|
| MD5 |
c28fbd1c7675c3d23ba286156248c145
|
|
| BLAKE2b-256 |
3096692b862e18fee1804f9982c6e1736a25c3c567862b0f570d9ebc77481702
|