Skip to content

Instantly share code, notes, and snippets.

@kazoo0217
Last active December 30, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazoo0217/7870254 to your computer and use it in GitHub Desktop.
Save kazoo0217/7870254 to your computer and use it in GitHub Desktop.
grunt livereload sass/compass and html
'use strict';
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
watch:{
options: {
livereload: true
},
html: {
files: '**/*.html',
tasks: ['']
},
scss: {
files: 'scss/*.scss',
tasks: ['compass']
}
},
compass: {
dist: {
options: {
config: 'config.rb'
}
}
},
connect: {
livereload: {
options: {
port: 9001
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-compass");
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