How do I compile a directory full of less css files to css?

后端 未结 14 642
执念已碎
执念已碎 2020-12-12 22:09

I have a directory full of less css files. What is the best way to compile them to normal css? (for deployment)

Id like to run a command as follows:

         


        
14条回答
  •  别那么骄傲
    2020-12-12 22:49

    Recently I've been experiencing issues with running something like

    lessc directory/*.less foo.css
    

    Instead of taking the different LESS's and outputting them into foo.css it would modify the second file in the list. This is not OK with me.

    To solve this problem, I made a new less frontend called lessm.

    You can check it out at https://github.com/jive/lessm.

    The way you'd use it is

    lessm foo.less foo2.less ../bar/bazz.less -o output.css
    

提交回复
热议问题