From 30ace3c6477b0d93ba22031cbb4b20b05c2559d5 Mon Sep 17 00:00:00 2001 From: Weslly Honorato Date: Sat, 24 Aug 2013 17:23:14 -0300 Subject: [PATCH 1/2] Added browser live reloading to Grunt --- Gruntfile.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index c2ce924..3ba8862 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -61,6 +61,17 @@ module.exports = function(grunt) { '<%= jshint.all %>' ], tasks: ['jshint', 'uglify', 'version'] + }, + livereload: { + // Browser live reloading + // https://github.com/gruntjs/grunt-contrib-watch#live-reloading + options: { + livereload: false + }, + files: [ + 'assets/css/main.min.css', + 'assets/js/scripts.min.js' + ] } }, clean: { From f2d54129ff64e53f89bbc9166f7014f7e397af6f Mon Sep 17 00:00:00 2001 From: Weslly Honorato Date: Sun, 25 Aug 2013 20:49:12 -0300 Subject: [PATCH 2/2] Add .php files to livereload --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3ba8862..d09a127 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -70,7 +70,9 @@ module.exports = function(grunt) { }, files: [ 'assets/css/main.min.css', - 'assets/js/scripts.min.js' + 'assets/js/scripts.min.js', + 'templates/*.php', + '*.php' ] } },