less.js 661 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Compiles LESS files into CSS.
  3. *
  4. * ---------------------------------------------------------------
  5. *
  6. * Only the `assets/styles/importer.less` is compiled.
  7. * This allows you to control the ordering yourself, i.e. import your
  8. * dependencies, mixins, variables, resets, etc. before other stylesheets)
  9. *
  10. * For usage docs see:
  11. * https://github.com/gruntjs/grunt-contrib-less
  12. */
  13. module.exports = function(grunt) {
  14. grunt.config.set('less', {
  15. dev: {
  16. files: [{
  17. expand: true,
  18. cwd: 'assets/styles/',
  19. src: ['importer.less'],
  20. dest: '.tmp/public/styles/',
  21. ext: '.css'
  22. }]
  23. }
  24. });
  25. grunt.loadNpmTasks('grunt-contrib-less');
  26. };