Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = function(grunt) {
  2.   require('jit-grunt')(grunt);
  3.  
  4.   grunt.initConfig({
  5.     less: {
  6.       development: {
  7.         options: {
  8.           compress: true,
  9.           yuicompress: true,
  10.           optimization: 2
  11.         },
  12.         files: {
  13.           "OUTPUT PATH": "INPUT FILE" // destination file and source file
  14.         }
  15.       }
  16.     },
  17.     watch: {
  18.       styles: {
  19.         files: ['PATH TO LESS /**/*.less'], // which files to watch
  20.         tasks: ['less'],
  21.         options: {
  22.           nospawn: true
  23.         }
  24.       }
  25.     }
  26.   });
  27.  
  28.   grunt.registerTask('default', ['less', 'watch']);
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement