less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
17.02k stars 3.41k forks source link

Is possible to merge all my less files in a single one less file? No compile #3557

Closed zj9495 closed 4 years ago

zj9495 commented 4 years ago

I have an entry.less, it imports a lot of less files. I want to merge these into a less file without compiling into a CSS file. Is this possible?

zj9495 commented 4 years ago

need help😭

matthew-dean commented 4 years ago

This question gets asked every now and then, even though this would be more appropriate for Stack Overflow. Honestly the easiest way would be to use another tool that just concatenates files.

Alternatively, you could use something like @import (inline) "file.less"; to just dump a Less file into another one.

matthew-dean commented 4 years ago

Closing as not a feature request or bug report.

zingxy commented 18 hours ago

I find antd just concatenate all .less files in to one. antd source code