Package Exports
- uglifycss
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uglifycss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
UglifyCSS is a port of YUI Compressor, for its CSS part, to NodeJS. Its name is a reference to the awesome UglifyJS but UglifyCSS is not a CSS parser. Like YUI CSS Compressor, it applies many regexp replacements.
Usage: uglifycss [options] css1 [css2] [...] > output
Options:
--max-line-len nadds a newline (approx.) everyncharacters;0means no newline and is the default value--expand-varsexpands variables; by default,@variablesblocks are preserved andvar(x)s are not expanded--ugly-commentsremoves newlines within preserved comments; by default, newlines are preserved--cute-commentspreserves newlines within and around preserved comments
A port to javascript is also available in the YUI Compressor repository.
2 functions are provided:
processString( content, options )processFiles( [ filename1, ... ], options )
See test.js for example.
UglifyCSS passes successfully the test suite of YUI compressor CSS.