Nostalgic Punchcard Missing

    gulp-htmlclean

    2.7.22 • Public • Published

    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.

    Install

    npm i gulp-htmlclean

    DownloadsWeekly Downloads

    2,601

    Version

    2.7.22

    License

    MIT

    Unpacked Size

    4.42 kB

    Total Files

    4

    Last publish

    Collaborators

    • anseki