Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
Watch
Run tasks whenever watched files change
https://www.npmjs.com/package/grunt-contrib-watch
*/
'watch': {
css: {
files: '<%= config.dev %>/assets/scss/*.scss',
tasks: ['sass:dev']
},
js: {
files: '<%= config.dev %>/assets/js/main.js',
tasks: ['jshint']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= config.dev %>/{,*/}*.html',
'<%= config.dev %>/assets/css/{,*/}*',
'<%= config.dev %>/assets/img/{,*/}*',
'<%= config.dev %>/assets/js/{,*/}*.js'
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.