mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
8a51daf280
* Separate configs for libsass and sass. * Sass compiler selected based on `process.env.TWBS_SASS`. * Travis: * Use Gemfile to manage ruby dependencies. * Run core tests with both Sass compilers. * Only install/cache ruby gems required by the test subset. * Grunt: `update-gemfile-lock` task a la `update-shrinkwrap`.
27 lines
665 B
JavaScript
27 lines
665 B
JavaScript
// 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,
|
|
sourceMap: true
|
|
},
|
|
core: {
|
|
files: {
|
|
'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss'
|
|
}
|
|
},
|
|
docs: {
|
|
files: {
|
|
'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss'
|
|
}
|
|
}
|
|
}
|
|
});
|
|
grunt.loadNpmTasks('grunt-sass');
|
|
};
|