How to configure BrowserSync's Live Reload feature with Grunt tasks :
BrowserSync is capable of live reloading and syncing the changes across all your test browsers. This will launch a mini web server by using your current working directory as the base, watch your files for changes & auto-inject those changes into all connected browsers.
See my earlier blog post for the pros/cons of BrowserSync over LiveReload.
In this tutorial, I will demonstrate how to configure the BrowserSync with Grunt tasks "grunt-contrib-watch" and "grunt-browser-sync" in a basic web page setup. You can easily configure your bigger projects on you follow the following steps:
Setup Steps:
The link to github project is given at the end of this article.
1) Web App/Site setup :
I've a basic web site with the following files / directories in my working folder:index.html
css/
main.css
js/
app.js