【发布时间】:2016-12-07 04:05:21
【问题描述】:
如何将.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 */
它返回一个错误:invalid css after @import
我尝试在主 scss 文件中包含另外 2 个 scss 文件,因此最终将全部编译为一个 css 文件。怎么可能?
【问题讨论】: