File: cleancss.py

package info (click to toggle)
python-django-compressor 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,036 kB
  • sloc: python: 4,347; makefile: 140; javascript: 5
file content (10 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
from compressor.conf import settings
from compressor.filters import CompilerFilter


class CleanCSSFilter(CompilerFilter):
    command = "{binary} {args} -o {outfile} {infile}"
    options = (
        ("binary", settings.COMPRESS_CLEAN_CSS_BINARY),
        ("args", settings.COMPRESS_CLEAN_CSS_ARGUMENTS),
    )