Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created September 3, 2014 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fgarcia/169d01e1def872891193 to your computer and use it in GitHub Desktop.
Save fgarcia/169d01e1def872891193 to your computer and use it in GitHub Desktop.
Plain livereload watcher for Grunt
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
files: 'app/views/**/*.erb',
options: {
livereload: true,
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default',['watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment