Skip to content

soplakanets/gulp-identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-identity

Does nothing to stream/file. Passes them unchanged.

Install

$ npm install --save-dev gulp-identity

Possible usage

Say you need to minify your js files only on production env and want your tasks to be more readable.

var gulp = require('gulp');

var minifyJs;
if ('production' == process.env.NODE_ENV) {
  minifyJs = require('gulp-uglify');
} else {
  minifyJs = require('gulp-identity');
}

gulp.task('default', function () {
  return gulp.src('src/*.js')
    .pipe(minifyJs())
    .pipe(gulp.dest('dist'));
});

License

MIT

About

Gulp plugin that does nothing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published