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
- Host: GitHub
- URL: https://github.com/soplakanets/gulp-identity
- Owner: soplakanets
- License: mit
- Created: 2014-05-08T09:25:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-08T09:36:17.000Z (about 11 years ago)
- Last Synced: 2025-03-01T00:56:49.387Z (4 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)