minify-css-stream
v0.1.0
Published
A through stream that minifies css.
Downloads
3
Readme
minify-css-stream
A css minification stream wrapper around clean-css. Returns a through stream that has css contents written in and outputs the minified version.
#example
var minifyCssStream = require( 'minify-css-stream' );
var fs = require( 'fs' );
var path = require( 'path' );
fs.createReadStream( 'file1.css' ).pipe( minifyCssStream( path.join( __dirname, 'file1.css' ) ) ).pipe( process.stdout );
#usage
minifyCssStream( file, [ opts ] )
file
- the file being minified
opts
- minification options passed through to clean-css