Skip to content

Instantly share code, notes, and snippets.

@vedranjaic
Last active August 29, 2015 14:12
Show Gist options
  • Save vedranjaic/f6ca94b72897d58cc10d to your computer and use it in GitHub Desktop.
Save vedranjaic/f6ca94b72897d58cc10d to your computer and use it in GitHub Desktop.
Gulp tasks condition for development and production environment
// Gulp environment
// https://github.com/gulpjs/gulp-util#noop
// should start gulp with desired environment
// gulp --type production
.pipe(gutil.env.type === 'production' ? uglify() : gutil.noop())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment