2.7.22 • Published 7 years ago

gulp-htmlclean v2.7.22

Weekly downloads
3,471
License
MIT
Repository
github
Last release
7 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

7 years ago

2.7.21

7 years ago

2.7.20

7 years ago

2.7.19

7 years ago

2.7.18

7 years ago

2.7.17

7 years ago

2.7.16

8 years ago

2.7.15

8 years ago

2.7.14

8 years ago

2.7.13

8 years ago

2.7.12

8 years ago

2.7.11

8 years ago

2.7.10

8 years ago

2.7.9

8 years ago

2.7.8

9 years ago

2.7.6

10 years ago

2.7.5

10 years ago

2.7.3

10 years ago

2.7.2

10 years ago

2.7.1

10 years ago

2.6.4

10 years ago

2.6.3

10 years ago

2.6.2

10 years ago

2.5.1

10 years ago

2.5.0

10 years ago

2.4.1

10 years ago

2.3.2

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.3

11 years ago

2.2.2

11 years ago

2.2.1

11 years ago

2.2.0-d

11 years ago

2.2.0

11 years ago