var gulp = require('gulp');
var less = require('gulp-less');
var minifyCSS = require('gulp-minify-css');
gulp.task('less', function() {
return gulp.src('web/src/style/less/**/*.less')
.pipe(less())
.pipe(minifyCSS())
.pipe(gulp.dest('web/src/style/css'))
})
gulp.task('watch', function(){
gulp.watch('web/src/style/less/**/*.less', ['less']);
})
location ~ \.php$ {
root /var/www/site/src;
...
}