Last active
August 29, 2015 14:17
-
-
Save PuercoPop/c9863743eee29a38dd4f to your computer and use it in GitHub Desktop.
En el directorio del projecto, escribe 'npm install gulp less gulp-less gulp-watch' Luego copia el archivo Gulpfile y desde powershell escribe gulp en powershell. Ahora cuando salves cualquier .less en la carpeta source/static/styles se generaran los .css.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var less = require('gulp-less'); | |
var watch = require('gulp-watch'); | |
gulp.task('minify', function () { | |
return gulp.src('source/static/styles/*.less') | |
.pipe(less({})).on('error', function () {}) | |
.pipe(gulp.dest('source/static/styles')); | |
}); | |
gulp.task('default', function () { | |
return watch('source/static/styles/*.less', function () { | |
gulp.start('minify'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment