False positive “undefined variable” error when compiling SCSS

后端 未结 4 725
走了就别回头了
走了就别回头了 2020-11-22 04:02

Getting an error message when compiling my SCSS using the ruby compass gem.

run: /var/lib/gems/1.8/gems/compass-0.12.2/bin/compass compile
out: unchanged sas         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 04:31

    I'd recommend looking into common Sass directory organizational structures. My personal favorite is The 7-1 Pattern.

    The nature of it splits commonly used elements into other files, which are all imported by a main.scss to kill redundancies.

    But also, firstly pay attention to @cimmanon's answer, as he more directly addresses your question.

提交回复
热议问题