Skip to content

Instantly share code, notes, and snippets.

@tmaeda1981jp
Created June 30, 2014 01:51
Show Gist options
  • Save tmaeda1981jp/c8f3edf1178bc4c170f2 to your computer and use it in GitHub Desktop.
Save tmaeda1981jp/c8f3edf1178bc4c170f2 to your computer and use it in GitHub Desktop.
My livereload setting.
/*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