Skip to content

Instantly share code, notes, and snippets.

@renekopcem renekopcem/Gruntfile.js
Last active Aug 29, 2015

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