less.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * `tasks/config/less`
  3. *
  4. * ---------------------------------------------------------------
  5. *
  6. * Compile your LESS files into a CSS stylesheet.
  7. *
  8. * For more information, see:
  9. * https://sailsjs.com/anatomy/tasks/config/less.js
  10. *
  11. */
  12. module.exports = function(grunt) {
  13. grunt.config.set('less', {
  14. dev: {
  15. files: [{
  16. expand: true,
  17. cwd: 'assets/styles/',
  18. src: ['importer.less'],
  19. dest: '.tmp/public/styles/',
  20. ext: '.css'
  21. }]
  22. }
  23. });
  24. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  25. // This Grunt plugin is part of the default asset pipeline in Sails,
  26. // so it's already been automatically loaded for you at this point.
  27. //
  28. // Of course, you can always remove this Grunt plugin altogether by
  29. // deleting this file. But check this out: you can also use your
  30. // _own_ custom version of this Grunt plugin.
  31. //
  32. // Here's how:
  33. //
  34. // 1. Install it as a local dependency of your Sails app:
  35. // ```
  36. // $ npm install grunt-contrib-less --save-dev --save-exact
  37. // ```
  38. //
  39. //
  40. // 2. Then uncomment the following code:
  41. //
  42. // ```
  43. // // Load Grunt plugin from the node_modules/ folder.
  44. // grunt.loadNpmTasks('grunt-contrib-less');
  45. // ```
  46. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  47. };