@import in @if statement in Sass

后端 未结 4 468
长发绾君心
长发绾君心 2020-11-28 13:14

I want to load only the css needed for the login page for performance. On my other pages I want a grouped css file that will be cached on every page which contain all my css

4条回答
  •  没有蜡笔的小新
    2020-11-28 13:56

    The core dev team is reluctant to implement this feature, although they are considering the implementation of a brand new dependency system.


    See the following Github issues :

    • Allow @import within @if (#451)
    • Using @import statements within control directives or mixins (#779)
    • Allow optional @imports (#779)
    • Dynamic Dependencies (#739)

提交回复
热议问题