井底之蛙

好记性不如烂笔头.菜鸟笔记.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

官网: http://lesscss.org/ .

中文文档直接百度搜索less,能找到N多网站提供的支持.

less-gui,使用国产的koala, 其中文帮助文档地址. 拖拽一个目录到考拉就新建了一个工程,比较方便.

但是,这样并没有完成. 还需要新建一个配置文件. 右键项目,具体可以看帮助文档->项目配置

譬如. 新建一个index.less 文件, 需要编译为 index.css . 需要配置"src"和"dest". 采用相对路径即可.

// Default project settings, you can edit it and set custom settings.
{
	// The mappings of source directory and output directory
	"mappings": [
		// {	
		// 	"src": "path/to/source",
		// 	"dest": "path/to/output"
		// }
		{
			"src": "./",
			"dest": "./"
		}
	],

	// Add the ignore rules that Koala will not search them.
	// e.g. ["*.json", "*.txt", "test", "path/libs"]
	"ignores": [],

	// Options of Compilers.
	"options": {
		// "key": "val",
		// "key2": "val2"
		// ...
	},

	// An array of filesystem paths which should be searched for js/LESS/Sass templates imported with the @import/@append/@prepend directive.
	"includePaths": []
}

  

 

posted on 2016-01-04 05:18  井底之蛙丶  阅读(215)  评论(0编辑  收藏  举报