gulp-truncate
v1.0.0
Published
Gulp utility module for truncating files
Downloads
2
Maintainers
Readme
gulp-truncate
Gulp Plugin to truncate multiple files in a directory and piping to destination directory.
Installation
npm install gulp-truncate --save
var gulp = require('gulp');
var truncate = require('gulp-truncate');
var paths = ["examples/samples/*.js"];
gulp.task('truncate',function(){
return gulp.src(paths).truncate().dest('dist');
})
Note: In case of empty content it will ignore the file.