Created
June 30, 2014 01:51
-
-
Save tmaeda1981jp/c8f3edf1178bc4c170f2 to your computer and use it in GitHub Desktop.
My livereload setting.
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
/*jslint white: true, nomen: true, maxlen: 120, plusplus: true, node: true, */ | |
/*global module:false, */ | |
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
connect: { | |
server: { | |
options: { | |
port: 9001, | |
hostname: 'localhost', | |
base: '.', | |
open: true, | |
keepalive: false | |
} | |
} | |
}, | |
watch: { | |
livereload: { | |
files: ['*.js', '*.css', '*.html'] | |
}, | |
options: { | |
livereload: true | |
} | |
} | |
}); | |
// npm install grunt-contrib-watch --save-dev | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// npm install grunt-contrib-connect --save-dev | |
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