我试过了:
sass-convert --from scss --to css --recursive app/assets/stylesheets temp
Run Code Online (Sandbox Code Playgroud)
但是这只能将css转换为SASS,我想要相反的方式.
然后我查看了sass命令,但看起来我不能将它传递给目录.
我怎样才能将.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最终将被编译为一个文件.这怎么可能?