Join Ray Villalobos for an in-depth discussion in this video Uglifying conditionally with gulpif, part of Gulp.js, Git, and Browserify: Web Project Workflows.
…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
Skill Level Intermediate
Q: When using the exercise files with the "git add" command on a PC, why do I receive warnings saying "LF will be replaced by CRLF"?
A: When running Unix files on a Windows workstation, the text formats are not exactly the same. Line Feeds (LFs) have to be converted to "Carriage Returns + Line Feeds.”