Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(grunt) {
- require('jit-grunt')(grunt);
- grunt.initConfig({
- less: {
- development: {
- options: {
- compress: true,
- yuicompress: true,
- optimization: 2
- },
- files: {
- "OUTPUT PATH": "INPUT FILE" // destination file and source file
- }
- }
- },
- watch: {
- styles: {
- files: ['PATH TO LESS /**/*.less'], // which files to watch
- tasks: ['less'],
- options: {
- nospawn: true
- }
- }
- }
- });
- grunt.registerTask('default', ['less', 'watch']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement