Skip to content

Instantly share code, notes, and snippets.

@kazoo0217 kazoo0217/Gruntfile.js
Last active Dec 30, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.