From the course: Grunt.js: Web Workflows

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Reloading our pages

Reloading our pages - Grunt.js Tutorial

From the course: Grunt.js: Web Workflows

Start my 1-month free trial

Reloading our pages

- Although Grunt is now running our tasks automatically whenever our page changes, we still have to hit the reload button when we make a change to our page. So it would be nice if we could automate that process, and, if you look at the documentation for the watch task, you'll notice that there is something called a livereload option in here. So let's scroll... and you can see reload... and then right here-- It has an option called "livereload" and it does what you think it would do, it just kinda tries to reload the page; however, there's a little problem that I don't like in the way that it works and if you keep on scrolling, when you get to live reloading, it says that if you want to configure it so that it works in your HTML, you have to add this script tag, which-- I don't really like to add any sort of script that is not part of my build into my HTML because I'll probably forget to remove it whenever I post this thing online, so it's actually a little bit nicer if you could have…

Contents