Join Ray Villalobos for an in-depth discussion in this video Adding static reloads, part of Gulp.js, Git, and Browserify: Web Project Workflows.
…So you may have caught on to the fact that this workflow is not quite perfect.…There's a little problem.…There's nothing watching our HTML files.…If we make a change to them, our live reload is not going to work.…So we need to add another task.…Let me just show you the problem.…I'm right here in my HTML file and I've got my preview of local host…8080, and if I make a change to any HTML it's not going to update automatically.…So we need to set that up.…Let me go ahead and undo this, and save…this again, and we'll go back into our gulp file.…The problem is we don't have a task that keeps track…of our HTML, so we need to add one of those.…
So, I'm going to create a new task here and I'll…call it gulp task html, then I'll add the call-back.…And in here I'm going to add the gulp source and I'm…going to need to create a variable here for this gulp source now.…I like creating these variables because they're…going to make things easier to update later on.…So, I'll create a new one here for HTML sources and set it to be…
- 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.”