gulp-minimize

1.0.0 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i gulp-minimize

Weekly Downloads

2

Version

1.0.0

License

none

Last publish

Collaborators

  • foru17