All Projects → hemanth → gulp-cleanhtml

hemanth / gulp-cleanhtml

Licence: other
remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to gulp-cleanhtml

Glup
Some of the gulp tutorial -《gulp笔记》
Stars: ✭ 136 (+615.79%)
Mutual labels:  gulp-plugin, clean
gulp-spsync-creds
Gulp plugin for synchronizing local files with a SharePoint library via user credentials
Stars: ✭ 12 (-36.84%)
Mutual labels:  gulp-plugin
Gulp Nunjucks
Precompile Nunjucks templates
Stars: ✭ 143 (+652.63%)
Mutual labels:  gulp-plugin
Gulp Webp
Convert images to WebP
Stars: ✭ 187 (+884.21%)
Mutual labels:  gulp-plugin
Gulp Stylelint
Gulp plugin for running Stylelint results through various reporters.
Stars: ✭ 149 (+684.21%)
Mutual labels:  gulp-plugin
Gulp Debug
Debug Vinyl file streams to see what files are run through your Gulp pipeline
Stars: ✭ 223 (+1073.68%)
Mutual labels:  gulp-plugin
Gulp Bro
👊 gulp + browserify + incremental build, done right.
Stars: ✭ 119 (+526.32%)
Mutual labels:  gulp-plugin
gulp-cssbeautify
Reindent and reformat CSS
Stars: ✭ 18 (-5.26%)
Mutual labels:  gulp-plugin
gulp-upload-qcloud
腾讯云 cos 静态资源上传 gulp 插件
Stars: ✭ 18 (-5.26%)
Mutual labels:  gulp-plugin
Gulp Compass
Compass plugin for gulp
Stars: ✭ 177 (+831.58%)
Mutual labels:  gulp-plugin
Gulp Traceur
Traceur is a JavaScript.next to JavaScript-of-today compiler
Stars: ✭ 172 (+805.26%)
Mutual labels:  gulp-plugin
Gulp Imagemin
Minify PNG, JPEG, GIF and SVG images
Stars: ✭ 1,860 (+9689.47%)
Mutual labels:  gulp-plugin
Gulp Size
Display the size of your project
Stars: ✭ 225 (+1084.21%)
Mutual labels:  gulp-plugin
gulp-xo
Validate files with XO
Stars: ✭ 37 (+94.74%)
Mutual labels:  gulp-plugin
Gulp Markdown
Markdown to HTML
Stars: ✭ 167 (+778.95%)
Mutual labels:  gulp-plugin
Gulp Rev
Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
Stars: ✭ 1,540 (+8005.26%)
Mutual labels:  gulp-plugin
Gulp Html Replace
Replace build blocks in HTML. Like useref but done right.
Stars: ✭ 222 (+1068.42%)
Mutual labels:  gulp-plugin
gulp-myth
[DEPRECATED] Myth - Postprocessor that polyfills CSS
Stars: ✭ 39 (+105.26%)
Mutual labels:  gulp-plugin
gulp-sort
Sort files in stream by path or any custom sort comparator
Stars: ✭ 22 (+15.79%)
Mutual labels:  gulp-plugin
Gulp Strip Debug
Strip console, alert, and debugger statements from JavaScript code
Stars: ✭ 242 (+1173.68%)
Mutual labels:  gulp-plugin

gulp-cleanhtml NPM version Build Status

Cleans your HTML using htmlclean

Usage

First, install gulp-cleanhtml as a development dependency:

npm install --save-dev gulp-cleanhtml

Then, add it to your gulpfile.js:

var cleanhtml = require('gulp-cleanhtml');

gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(cleanhtml())
    .pipe(gulp.dest('build/index.html'));
});

The above will remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].