Compiling all less files into one stylesheet?

◇◆丶佛笑我妖孽 提交于 2019-12-06 04:55:50

问题


I am using simpless, I drag the project into it and target all the less files to styles.css

The issue is when compiling the less stylesheets are just over writing each other rather than being merged together. Is there a way when compiling to merge them all into styles.css ?


回答1:


You have to create a master less file that imports the subfiles. The master file would import the subfiles with:

@import "myfile1.less";
@import "myfile2.less";

Into the compiler, you just pass the master less file.

Hope this helps // ph



来源:https://stackoverflow.com/questions/14710570/compiling-all-less-files-into-one-stylesheet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!