Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 433 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 433 Bytes

gulp-whitespace

A simple gulp plugin that strips and converts white-space in text- and code- files.

Copyright © 2016, Jürg Lehni.

var gulp = require('gulp');
var whitespace = require('gulp-whitespace');

gulp.task('whitespace', function() {
    return gulp.src('./src/*.js')
        .pipe(whitespace({
            spacesToTabs: 4,
            removeTrailing: true
        }))
        .pipe(gulp.dest('./dest'));
});