Gruntfile.js 911 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = function(grunt) {
  2. 'use strict';
  3. var config = {};
  4. grunt.loadNpmTasks('grunt-contrib-less');
  5. grunt.loadNpmTasks('grunt-contrib-watch');
  6. // Project configuration.
  7. grunt.initConfig({
  8. config: config,
  9. less: {
  10. hue: {
  11. options: {
  12. paths: ['desktop/core/src/desktop/static/desktop/less'],
  13. compress: false
  14. },
  15. files: {
  16. 'desktop/core/src/desktop/static/desktop/css/hue.css': 'desktop/core/src/desktop/static/desktop/less/hue.less',
  17. 'desktop/core/src/desktop/static/desktop/css/hue3-extra.css': 'desktop/core/src/desktop/static/desktop/less/hue3-extra.less'
  18. }
  19. }
  20. },
  21. watch: {
  22. less: {
  23. files: [
  24. 'desktop/core/src/desktop/static/desktop/less/*.less',
  25. 'desktop/core/src/desktop/static/desktop/less/**/*.less'
  26. ],
  27. tasks: ['less']
  28. }
  29. }
  30. });
  31. };