file.css.scss和file.scss之间的区别(Rails) [英] difference between file.css.scss and file.scss (Rails)
本文介绍了file.css.scss和file.scss之间的区别(Rails)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近一直在学习Rails,但遇到了一个问题.创建file.scss和file.css.scss有什么区别吗?我正在使用rails -v 4.2.4
I've been studying Rails recently and got stuck with a question. Is there any difference in creating file.scss and file.css.scss? I'm using rails -v 4.2.4
推荐答案
创建
file.scss
和file.css.scss
根据我的经验.
.js.coffee
也是如此(我们只称 .coffee
)
Same goes for .js.coffee
(we just call .coffee
)
您可以通过它们的实际文件名来调用它们,然后Sprockets会正确处理它们.
You can just call them by their actual filename, and Sprockets deals with them properly.
这篇关于file.css.scss和file.scss之间的区别(Rails)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文