less.js 986 B

12345678910111213141516171819202122232425
  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", "<%= srcDir %>/css/less"],
  16. yuicompress:true
  17. },
  18. files: {
  19. "<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/css/less/bootstrap.dark.less",
  20. "<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/css/less/bootstrap.light.less",
  21. "<%= srcDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/css/less/grafana-responsive.less"
  22. }
  23. }
  24. };
  25. };