Gruntfile.js 796 B

1234567891011121314151617181920212223242526272829303132
  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. responsive: {
  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/responsive.css': 'desktop/core/src/desktop/static/desktop/less/responsive.less'
  17. }
  18. }
  19. },
  20. watch: {
  21. less: {
  22. files: [
  23. 'desktop/core/src/desktop/static/desktop/less/*.less',
  24. 'desktop/core/src/desktop/static/desktop/less/**/*.less'
  25. ],
  26. tasks: ['less']
  27. }
  28. }
  29. });
  30. };