css combo打包

來源:互聯網
上載者:User

如果利用@import形式來組織你的css,那麼你就可以用打包工具CSS Combo了:

首先安裝css combo:

npm install -g css-combo

然後進入你所在的入口檔案(本例為style.css)目錄,輸入:

csscombo style.css style.combo.css

這樣就會把style.css檔案打包成style.combo.css檔案。很簡單吧。當然還有其他參數,請見github文檔

好吧,你不喜歡用命令,或者你想整合該工具到你自己的一整套打包工具中,可以到github上看相關的api文檔:https://github.com/daxingplay/css-combo

 

其他命令:

壓縮:csscombo style.css style.combo.css -compress

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.