sass.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Compile Bootstrap with [Ruby Sass][1] using [grunt-contrib-sass][2]
  2. // [1]: https://github.com/sass/sass
  3. // [2]: https://github.com/gruntjs/grunt-contrib-sass
  4. module.exports = function configureRubySass(grunt) {
  5. var options = {
  6. loadPath: ['scss'],
  7. precision: 6,
  8. sourcemap: 'auto',
  9. style: 'expanded',
  10. trace: true,
  11. bundleExec: true
  12. };
  13. grunt.config.merge({
  14. sass: {
  15. core: {
  16. options: options,
  17. files: {
  18. 'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss'
  19. }
  20. },
  21. extras: {
  22. options: options,
  23. files: {
  24. 'dist/css/<%= pkg.name %>-flex.css': 'scss/<%= pkg.name %>-flex.scss',
  25. 'dist/css/<%= pkg.name %>-grid.css': 'scss/<%= pkg.name %>-grid.scss',
  26. 'dist/css/<%= pkg.name %>-reboot.css': 'scss/<%= pkg.name %>-reboot.scss'
  27. }
  28. },
  29. docs: {
  30. options: options,
  31. files: {
  32. 'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss'
  33. }
  34. }
  35. }
  36. });
  37. grunt.loadNpmTasks('grunt-contrib-sass');
  38. };