Package Exports
- gulp-file-empty
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-file-empty) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-file-empty
use for check file if it's empty
install
$ npm install --save-dev gulp-file-emptyUsage
const gulp = require('gulp');
const isEmpty = require('gulp-file-empty');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(isEmpty())
.pipe(gulp.dest('dist'))
);License
MIT © x-yao