我如何编译一个目录,更少的css文件到css? [英] How do I compile a directory full of less css files to css?
本文介绍了我如何编译一个目录,更少的css文件到css?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个目录少了css文件。什么是最好的方式来将它们编译为正常的CSS? (用于部署)
I have a directory full of less css files. What is the best way to compile them to normal css? (for deployment)
Id喜欢运行以下命令:
Id like to run a command as follows:
lessc -r less/ css/
其中lessc是较少的编译器)
where lessc is the less compiler (installed via node package manager)
推荐答案
这样做的方法是引导程序 - 有一个文件导入所有其他文件并编译。 p>
The way to do this is what bootstrap does - have a file which imports all the others and compile that.
@import "variables.less";
@import "mixins.less";
这篇关于我如何编译一个目录,更少的css文件到css?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文