Skip to main content

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.

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

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

COMPRESS_POSTCSS_PLUGINS determines the plugins that PostCSS will use.

Metadata

Release files for django-compressor-postcss 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-compressor-postcss 0.8.2
File Interpreter ABI Platform Actions
django_compressor_postcss-0.8.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_compressor_postcss-0.8.2-py2.py3-none-any.whl

Release files / django_compressor_postcss-0.8.2-py2.py3-none-any.whl

Download URL django_compressor_postcss-0.8.2-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c443412f01f8abbb9f138e12ca2342c35d27208c4475ece8b437ef9961c3f012
BLAKE2b-256 checksum
How to use checksums
3096692b862e18fee1804f9982c6e1736a25c3c567862b0f570d9ebc77481702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-compressor-postcss 0.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page