Alexander Savin
Alexander Savin

Reputation: 6442

Backbone.js app - browser refresh on source save

I'm developing a Backbone.js app, and running it locally with simple Node.js based http-server: https://npmjs.org/package/http-server

I'd like for the browser to refresh the page when any of the source files are changed. What is the best way to achieve this?

Upvotes: 0

Views: 146

Answers (1)

Matthew Daly
Matthew Daly

Reputation: 9476

You should be able to do that using Grunt. There's a plugin for it at https://github.com/gruntjs/grunt-contrib-watch that will run specified tasks when certain files are changed, and it includes live reload functionality.

Upvotes: 1

Related Questions