2.7.22 • Published 6 years ago

gulp-htmlclean v2.7.22

Weekly downloads
3,471
License
MIT
Repository
github
Last release
6 years ago

gulp-htmlclean

npm GitHub issues David license

This gulp plugin is wrapper of htmlclean.

If you want to just clean files, Command Line Tool is easy way.

Simple and safety HTML/SVG cleaner to minify without changing its structure.
See htmlclean for options and more information about htmlclean.

Getting Started

npm install gulp-htmlclean --save-dev

Usage

gulpfile.js

var gulp = require('gulp'),
  htmlclean = require('gulp-htmlclean');

gulp.task('default', function() {
  return gulp.src('./develop/*.html')
    .pipe(htmlclean({
        protect: /<\!--%fooTemplate\b.*?%-->/g,
        edit: function(html) { return html.replace(/\begg(s?)\b/ig, 'omelet$1'); }
      }))
    .pipe(gulp.dest('./public_html/'));
});

See htmlclean for the options.

2.7.22

6 years ago

2.7.21

6 years ago

2.7.20

6 years ago

2.7.19

6 years ago

2.7.18

6 years ago

2.7.17

6 years ago

2.7.16

6 years ago

2.7.15

7 years ago

2.7.14

7 years ago

2.7.13

7 years ago

2.7.12

7 years ago

2.7.11

7 years ago

2.7.10

7 years ago

2.7.9

7 years ago

2.7.8

7 years ago

2.7.6

8 years ago

2.7.5

8 years ago

2.7.3

9 years ago

2.7.2

9 years ago

2.7.1

9 years ago

2.6.4

9 years ago

2.6.3

9 years ago

2.6.2

9 years ago

2.5.1

9 years ago

2.5.0

9 years ago

2.4.1

9 years ago

2.3.2

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0-d

10 years ago

2.2.0

10 years ago