Skip to content

Instantly share code, notes, and snippets.

@jbub
Created June 12, 2013 08:33
Show Gist options
  • Save jbub/5763709 to your computer and use it in GitHub Desktop.
Save jbub/5763709 to your computer and use it in GitHub Desktop.
cssmin compressor for django-pipeline that is using the CompressorBase instead of SubProcessCompressor format
from pipeline.compressors import CompressorBase
class CSSMinCompressor(CompressorBase):
def compress_css(self, css):
from cssmin import cssmin
return cssmin(css)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment