[英]rails sass @import is not finding the file
I am trying to set up rails with sass, I have remove the require tree and trying to @import the files to the application.css the following 我正在尝试使用sass设置rails,我删除了require树,并尝试将文件@import到application.css中,如下所示
@import '_variables.scss';
is working, any other @import I am trying to do is not working. 正在工作,我尝试执行的任何其他@import工作均无效。
example 例
@import '_layout.scss'
is not working. 不管用。
You don't include the .scss
or the _
您不包括
.scss
或_
Try: @import "layout"
试试:
@import "layout"
Do some reading on http://sass-lang.com/guide , it will explain how @import
works, and what that _
does (these files are called "partials") 在http://sass-lang.com/guide上进行一些阅读,它将解释
@import
工作方式以及_
作用(这些文件称为“部分”)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.