cssmin not correctly handling @import

前端 未结 6 1661
粉色の甜心
粉色の甜心 2021-02-08 01:40

I am using cssmin on files containing @imports. cssmin is recursively importing local files correctly, but for imports that point to a URL the imports are left inline. This ma

6条回答
  •  失恋的感觉
    2021-02-08 02:30

    I know this question for a very long time but i post this for anybody that looking for this issue on stack overflow ... just put your code in /!..../ like this:

    /*! * @import url('//fonts.googleapis.com/cssfamily=Roboto:300,400,400i,500,700,700i'); */
    

    it will be include in your destination min css but don't forget to use remote import in top of your page.

提交回复
热议问题