Using gulp-less
npm install --save-dev gulp-less
gulpfile.js:
// including plugins var gulp = require('gulp'); var less = require("gulp-less"); // task gulp.task('compile-less', function () { gulp.src('./Less/one.less') // path to your file .pipe(less()) .pipe(gulp.dest('path/to/destination')); });
Run:
gulp compile-less
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。