less.js 878 B

123456789101112131415161718192021222324
  1. module.exports = function(config) {
  2. return {
  3. // this is the only task, other than copy, that runs on the src directory, since we don't really need
  4. // the less files in the dist. Everything else runs from on temp, and require copys everything
  5. // from temp -> dist
  6. dist:{
  7. expand: true,
  8. cwd:'<%= srcDir %>/vendor/bootstrap/less/',
  9. src: ['bootstrap.dark.less', 'bootstrap.light.less'],
  10. dest: '<%= tempDir %>/css/',
  11. },
  12. // Compile in place when not building
  13. src:{
  14. options: {
  15. paths: ["<%= srcDir %>/vendor/bootstrap/less"],
  16. yuicompress:true
  17. },
  18. files: {
  19. "<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.dark.less",
  20. "<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.light.less"
  21. }
  22. }
  23. };
  24. };