2014-12-15 19:18:27 +01:00
|
|
|
// Compile Bootstrap with [libsass][1] using [grunt-sass][2]
|
|
|
|
// [1]: https://github.com/sass/libsass
|
|
|
|
// [2]: https://github.com/sindresorhus/grunt-sass
|
|
|
|
module.exports = function configureLibsass(grunt) {
|
|
|
|
grunt.config.merge({
|
|
|
|
sass: {
|
|
|
|
options: {
|
|
|
|
includePaths: ['scss'],
|
|
|
|
precision: 6,
|
|
|
|
sourceComments: false,
|
2015-08-10 08:16:43 +02:00
|
|
|
sourceMap: true,
|
|
|
|
outputStyle: 'expanded'
|
2014-12-15 19:18:27 +01:00
|
|
|
},
|
|
|
|
core: {
|
|
|
|
files: {
|
2015-01-18 23:53:06 +01:00
|
|
|
'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss'
|
2014-12-15 19:18:27 +01:00
|
|
|
}
|
|
|
|
},
|
2015-06-18 19:19:50 +02:00
|
|
|
extras: {
|
|
|
|
files: {
|
|
|
|
'dist/css/<%= pkg.name %>-grid.css': 'scss/<%= pkg.name %>-grid.scss',
|
|
|
|
'dist/css/<%= pkg.name %>-reboot.css': 'scss/<%= pkg.name %>-reboot.scss'
|
|
|
|
}
|
|
|
|
},
|
2014-12-15 19:18:27 +01:00
|
|
|
docs: {
|
|
|
|
files: {
|
2016-12-22 05:26:17 +01:00
|
|
|
'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss'
|
2014-12-15 19:18:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-sass');
|
|
|
|
};
|