4.10. Less Compilation

简介:

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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
8月前
|
人工智能 机器人 测试技术
【CMake报错】报错:Flow control statements are not properly nested.
【CMake报错】报错:Flow control statements are not properly nested.
101 0
|
8月前
|
编译器 Linux C语言
CMake指定交叉编译指南:从编译器设置到验证 (CMake Cross-compilation Guide: From Compiler Setup to Verification)
CMake指定交叉编译指南:从编译器设置到验证 (CMake Cross-compilation Guide: From Compiler Setup to Verification)
2047 1
你需要了解的JIT Debugging
你需要了解的JIT Debugging
|
关系型数据库 MySQL C++
fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler
fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler
571 0
编译x264出现错误:No working C compiler found.
编译x264出现错误:No working C compiler found.
347 0
SipStack.i:321: Error: Unknown SWIG preprocessor directive:
SipStack.i:321: Error: Unknown SWIG preprocessor directive:
83 0
|
Java 应用服务中间件 编译器
Java: Unresolved compilation problem的解决方法
Java: Unresolved compilation problem的解决方法
Java: Unresolved compilation problem的解决方法
|
前端开发 测试技术 Ruby