0.1.0 • Published 10 years ago

minify-css-stream v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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