Created
October 28, 2013 13:50
-
-
Save nurinamu/7197132 to your computer and use it in GitHub Desktop.
local에서 html작업시에 grunt로 자동 page reload를 하는 간단한 configuration 파일.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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