Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Last active August 29, 2015 14:04
Show Gist options
  • Save fakiolinho/b8f2f8bc8a3425c30af8 to your computer and use it in GitHub Desktop.
Save fakiolinho/b8f2f8bc8a3425c30af8 to your computer and use it in GitHub Desktop.
Grunt: SASS
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dist: {
options: {
sassDir: 'css/sass',
cssDir: 'css',
outputStyle: 'expanded',
environment: 'production'
}
},
dev: {
options: {
sassDir: 'css/sass',
cssDir: 'css'
}
}
},
watch: {
files: ['css/sass/*.sass'],
tasks: ['compass']
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['compass', 'watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment