An open API service indexing awesome lists of open source software.

https://github.com/soplakanets/gulp-identity

Gulp plugin that does nothing
https://github.com/soplakanets/gulp-identity

Last synced: 3 months ago
JSON representation

Gulp plugin that does nothing

Awesome Lists containing this project

README

        

# [gulp](http://gulpjs.com)-identity

Does nothing to stream/file. Passes them unchanged.

## Install

```bash
$ 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.

```js
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](http://opensource.org/licenses/MIT)