Django Compressor ================= .. image:: https://codecov.io/github/django-compressor/django-compressor/coverage.svg?branch=develop :target: https://codecov.io/github/django-compressor/django-compressor?branch=develop .. image:: https://img.shields.io/pypi/v/django_compressor.svg :target: https://pypi.python.org/pypi/django_compressor .. image:: https://img.shields.io/github/actions/workflow/status/django-compressor/django-compressor/ci.yml?branch=develop :alt: Build Status :target: https://github.com/django-compressor/django-compressor/actions?query=workflow%3ACI Django Compressor processes, combines and minifies linked and inline Javascript or CSS in a Django template into cacheable static files. It supports compilers such as coffeescript, LESS and SASS and is extensible by custom processing steps. How it works ------------ In your templates, all HTML code between the tags ``{% compress js/css %}`` and ``{% endcompress %}`` is parsed and searched for CSS or JS. These styles and scripts are subsequently processed with optional, configurable compilers and filters. The default filter for CSS rewrites paths to static files to be absolute. Both Javascript and CSS files are by default concatenated and minified. As the final step the template tag outputs a ``