小编osh*_*rdo的帖子

在另一个`.scss`文件中包含`.scss`文件?

我怎样才能将.scss文件包含在另一个.scss文件中?我试图在一个文件中写这个:app.scss:

@include('buttons');
@include('dropzone');

body {

    background: $primaryColor;
    overflow-x: hidden; /*Clip the left/right edges of the content inside the <div> element - if it overflows the element's content area: */
    height: 100%; /* Cover all (100%) of the container for the body with its content */
    padding-top: 70px;
} /* more css code here */
Run Code Online (Sandbox Code Playgroud)

它会返回一个错误: invalid css after @import

我尝试在主scss文件中包含2个其他scss 文件,因此它css最终将被编译为一个文件.这怎么可能?

sass scss-lint

22
推荐指数
3
解决办法
2万
查看次数

标签 统计

sass ×1

scss-lint ×1