SASS : making underscore file names actually create css files

前端 未结 1 1795
感情败类
感情败类 2020-12-02 00:54

By default SASS looks at the filename and determines whether to make a css file out of it. I\'m wondering if there is a way to prevent this from happening.

We\'re

相关标签:
1条回答
  • 2020-12-02 01:39

    The entire point of partials is that they don't get compiled into files. If you want a sass file to be turned into a css file, remove the underscore.

    Your real problem seems the be that you're putting compiled CSS in your version control. Don't do that. Only commit Sass, and compile it into CSS server-side with a post-receive hook or something.

    0 讨论(0)
提交回复
热议问题