Skip to content

Instantly share code, notes, and snippets.

@nurinamu
Created October 28, 2013 13:50
Show Gist options
  • Save nurinamu/7197132 to your computer and use it in GitHub Desktop.
Save nurinamu/7197132 to your computer and use it in GitHub Desktop.
local에서 html작업시에 grunt로 자동 page reload를 하는 간단한 configuration 파일.
module.exports = function(grunt){
grunt.initConfig({
connect:{
server:{
options:{}
}
},
watch:{
scripts:{
files:'*.html',
},
options:{
livereload : true
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default',['connect','watch']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment