首页 > 其他 > 详细

less使用001

时间:2016-01-04 06:36:15      阅读:180      评论:0      收藏:0      [点我收藏+]

官网: 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": []
}

  

 

less使用001

原文:http://www.cnblogs.com/juedui0769/p/5097706.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!