Skip to content

foru17/gulp-minimize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-minimize NPM version Build Status dependencies Status devDependencies Status

NPM

Gulp plugin for HTML minifiy.Based on minimize.

Thin wrapper over Swaagie's minimize.

Installation

Install package with NPM and add it to your development dependencies:

npm install gulp-minimize

Usage

var gulp = require('gulp');
var rename = require('gulp-rename');
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,
	cdata: true,
	comments: false,
	ssi: false,
	conditionals: true,
	spare: true,
	quotes: true,
	loose: true,
	lowerCaseAttributeNames: false
})

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

License

MIT License (Expat)

About

Gulp plugin for HTML minifiy.Based on minimize.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published