Include `.scss` file in another `.scss` file?

前端 未结 4 582
花落未央
花落未央 2020-12-16 11:04

How can I Include .scss file in another .scss file? I was trying to write this in a file: app.scss:

@include(\'buttons\');
@include         


        
4条回答
  •  粉色の甜心
    2020-12-16 11:38

    You can include a partial by doing this:

    @import "partial";
    

    The imported file needs an underscore, so sass will recognize it to be included: _partial.scss

提交回复
热议问题