New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-cleanhtml

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-cleanhtml

Removes unneeded whitespaces, line-breaks, comments, etc from HTML

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source

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.

Keywords

log

FAQs

Package last updated on 30 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts