命名导入的scss文件.scss或.css.scss [英] Naming imported scss files .scss or .css.scss
问题描述
我试图让livereload在rails 3.2上工作,并且遇到了这个问题,其中提到了不使用.css.scss命名导入的sass部分的问题:
I was trying to get livereload working with rails 3.2, and I came across this question, of which there is a reference to not naming imported sass partials with .css.scss:
导入的SCSS文件应该命名为file.scss而不是file.css.scss正确吗?
Is this correct that imported SCSS files should be named file.scss and not file.css.scss?
推荐答案
老实说,我认为这没什么大不了的.按照惯例,我通常将最终输出为实际CSS文件的文件命名为.css.scss,将导入的文件命名为.scss.
Honestly, I don't think it matters much. As a convention, I generally name files that will eventually be output as an actual CSS file as .css.scss and imported files as .scss.
我对.html.haml和.haml做相同的操作.
I do the same for .html.haml and .haml for partials.
这篇关于命名导入的scss文件.scss或.css.scss的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!