Last active
December 26, 2015 05:09
-
-
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.
This file contains hidden or 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
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