Concatenate multiple CSS files into one

前端 未结 4 747
臣服心动
臣服心动 2021-02-09 04:29

What is the best way to concatenate multiple CSS files into one CSS file?

I want to reduce the following ..



        
4条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 05:05

    At the beginning of 3.css you could add:

    @import url(/css/1.css);
    @import url(/css/2.css);
    

    But i prefer using multiple link tags, or, even better, compressing my CSS into 1 file (using YUI compressor for example).

提交回复
热议问题