1.0.0 • Published 7 years ago

gulp-minimize v1.0.0

Weekly downloads
15
License
-
Repository
github
Last release
7 years ago

gulp-minimize NPM version Build Status

Gulp plugin for HTML minifiy.Based on minimize.

Thin wrapper over Swaagie's minimize.

Usage

var gulp = require('gulp');
var Minimize = require('gulp-minimize');

gulp.task('html', function() {
        gulp.src('./index.html')
        .pipe(Minimize())
        .pipe(rename('min.html'))
        .pipe(gulp.dest('.'));
});

API

Minimize({
	empty:true,
	comments: false,
	ssi: false,
	conditionals: true,
	spare: true 
}))

See minimize for details and behavior for each option; the params are passed straight through.

License

MIT License (Expat)