Keep @import at the end of CSS after SCSS compile

后端 未结 2 1909
不思量自难忘°
不思量自难忘° 2021-01-19 09:58

We need to put @import at the end of my CSS file. For example:

SCSS:

@import \"reset.css\";
Body {
   font: 0.8em arial         


        
2条回答
  •  抹茶落季
    2021-01-19 10:41

    Are you using @import for any particular reason? There are performance impacts, and no major use case anymore.

    It would be better if you used Sass's @import to concatenate the file instead, this would also allow you to import in the order you want and rely on the cascade.

    @import "reset";
    
    Body {
      font: 0.8em arial;
    }
    
    @import "customation";
    

提交回复
热议问题