Last active
August 29, 2015 14:04
-
-
Save renekopcem/2149f38667fed8de7c95 to your computer and use it in GitHub Desktop.
Libsass - Gruntfile.js
This file contains 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) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
files: './scss/**/*.scss', | |
tasks: ['sass:dev'] | |
}, | |
sass: { | |
options: { | |
includePaths: [ | |
require('node-bourbon').includePaths, | |
'bowerComponents/sass-list-maps', | |
'bowerComponents/foundation/scss' | |
] | |
}, | |
dist: { | |
option: { | |
outputStyle: 'compressed' | |
}, | |
files: { | |
'./css/dist/screen.css': './scss/screen.scss', | |
'./css/dist/screen-ie.css': './scss/screen-ie.scss', | |
'./css/dist/print.css': './scss/print.scss' | |
} | |
}, | |
dev: { | |
options: { | |
sourceMap: true | |
}, | |
files: { | |
'./css/screen.css': './scss/screen.scss', | |
'./css/screen-ie.css': './scss/screen-ie.scss', | |
'./css/print.css': './scss/print.scss' | |
} | |
} | |
} | |
}); | |
// Load task(s) | |
grunt.loadNpmTasks('grunt-sass'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// Default task(s). | |
grunt.registerTask('default', ['watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment