Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
gulp.env deprecated for gulp-util.env or your own CLI parser
Browse files Browse the repository at this point in the history
  • Loading branch information
plaxdan committed Jan 30, 2014
1 parent 5c367d8 commit f76041b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/recipes/pass-params-from-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
`gulpfile.js`

```js
// npm install gulp gulp-if gulp-uglify
// npm install gulp gulp-util gulp-if gulp-uglify
var gulp = require('gulp');
var gutil = require('gulp-util');
var gulpif = require('gulp-if');
var uglify = require('gulp-uglify');

var isProduction = gulp.env.type === 'production';
var isProduction = gutil.env.type === 'production';

gulp.task('scripts', function () {
return gulp.src('**/*.js')
Expand Down

0 comments on commit f76041b

Please sign in to comment.