Join Ray Villalobos for an in-depth discussion in this video Uglifying conditionally with gulpif, part of Web Project Workflows with Gulp.js, Git, and Browserify.
…So, it's great that we can create different scenarios through…environment variables, but there's another way to create conditional content.…We can use another plugin called gulp-if to create all kinds of conditional tasks.…So, the difference with gulp-if is that…you can put it within the tasks themselves.…So, you can create a condition like right here…and then execute some tasks depending on the condition.…So, let's go ahead and install it.…We'll go over to our terminal and do npm…install minus minus save dev gulp-if.…
- Why workflow management?
- Processing tasks with gulp-coffee
- Importing libraries with Browserify
- Processing Sass and Compass
- Issuing tasks in sequence
- Watching changes to files
- Adding static reloads
- Setting up environment variables
- Minifying HTML
- Compressing images