Merge pull request #856 from weslly/grunt-watch-livereload
Added browser live reloading to Grunt
This commit is contained in:
13
Gruntfile.js
13
Gruntfile.js
@@ -61,6 +61,19 @@ 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',
|
||||
'templates/*.php',
|
||||
'*.php'
|
||||
]
|
||||
}
|
||||
},
|
||||
clean: {
|
||||
|
||||
Reference in New Issue
Block a user