Skip to content

Instantly share code, notes, and snippets.

@sunilw
Last active December 26, 2015 05:09
Show Gist options
  • Save sunilw/7098951 to your computer and use it in GitHub Desktop.
Save sunilw/7098951 to your computer and use it in GitHub Desktop.
working Gruntfile. Includes webserver. Watches for changes in filesystem. Runs compass, and produces sass debugging symbols.
module.exports = function (grunt){
grunt.initConfig({
compass : {
dist : {
options : {
sassDir : "sass",
cssDir : "css",
debugInfo : true
}
}
},
connect : {
uses_defaults : {}
},
watch : {
files : ['*.html', 'js/*', 'sass/*', 'css/*'],
tasks : ['compass'],
options : {
livereload: true
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch') ;
grunt.loadNpmTasks('grunt-contrib-connect') ;
grunt.loadNpmTasks('grunt-contrib-compass') ;
grunt.registerTask('default', ['connect','watch'])
} ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment