Concatenate multiple CSS files into one

前端 未结 4 735
臣服心动
臣服心动 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 04:51

    As long as the ordering of the arguments for cat matches the original ordering of the three referenced CSS files in the HTML file the cat-method should work as expected.

    So given say ..

    
    
    
    

    .. the following concaternation ..

    cat css/one.css css/two.css css/three.css > css/all.css
    

    .. together will the following reference ..

    
    

    .. should be 100 % identical.

提交回复
热议问题