Join two .less files into one css file

后端 未结 2 1776
执念已碎
执念已碎 2020-12-16 12:27

When working with lesscss I would like to join two or three .less files into one super css file.

I know that you can do it using some little rub

2条回答
  •  北海茫月
    2020-12-16 13:06

    You can use import, similar to how you can in a regular CSS file.

    @import "reset";
    @import "config";
    @import "header";
    @import "forms";
    

    Taken from this SO post. It's also mentioned in the "Importing" section of the Less Documentation.

提交回复
热议问题