File: README.md

package info (click to toggle)
cssmin 0.2.0-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 84 kB
  • ctags: 24
  • sloc: python: 140; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# `cssmin`

This is a Python port of the [YUI CSS Compressor][yuicompressor]. Install it:

  [yuicompressor]: http://developer.yahoo.com/yui/compressor/

    $ easy_install cssmin # OR
    $ pip install cssmin

Use it from the command-line:

    $ cssmin --help
    $ cat file1.css file2.css file3.css | cssmin > output.min.css
    $ cssmin --wrap 1000 < input.css > output.css

Or use it from Python:

    >>> import cssmin
    >>> output = cssmin.cssmin(open('input.css').read())
    >>> print output