Nail Polishing Minions

    gulp-remove-empty-lines

    0.1.0 • Public • Published

    gulp-remove-empty-lines Build Status

    Remove empty lines from files.

    Install

    npm install --save-dev gulp-remove-empty-lines
    

    Usage

    var gulp = require('gulp');
    var removeEmptyLines = require('gulp-remove-empty-lines');
     
    gulp.task('tojson', function () {
      gulp.src('./public/*.html')
      .pipe(removeEmptyLines())
      .pipe(gulp.dest('./public/'));
    });
     
    gulp.task('htmlClean', function () {
      gulp.src('./index.html')
      .pipe(removeEmptyLines({
        removeComments: true
      }))
      .pipe(gulp.dest('./public/'));
    });

    Options

    removeComments

    Type: boolean Default: false

    Remove all the comments from the html files.

    removeSpaces

    Type: boolean Default: false

    Remove all duplicate spaces from any file.

    License

    MIT © Daniel Husar

    Install

    npm i gulp-remove-empty-lines

    DownloadsWeekly Downloads

    1,351

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • efrafa