相关疑难解决方法(0)

如何通过命令行将目录SASS/SCSS转换为CSS?

我试过了:

sass-convert --from scss --to css --recursive app/assets/stylesheets temp
Run Code Online (Sandbox Code Playgroud)

但是这只能将css转换为SASS,我想要相反的方式.

然后我查看了sass命令,但看起来我不能将它传递给目录.

sass

35
推荐指数
3
解决办法
7万
查看次数

在另一个`.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 ×2

scss-lint ×1