Last active
August 29, 2015 14:12
-
-
Save vedranjaic/f6ca94b72897d58cc10d to your computer and use it in GitHub Desktop.
Gulp tasks condition for development and production environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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