Why put in front of the file name “_” or “_” in scss/css?

前端 未结 6 1786
悲&欢浪女
悲&欢浪女 2020-12-02 10:45

Why put _ in front of the filename in scss?

_filename.scss - Why does it need _ ?

6条回答
  •  不知归路
    2020-12-02 11:22

    _ is used to denote partials. These partials contains the variables and internal functions that are required in the pre-processing stage, and they are not required to be compiled as css. _ partial templates contains utils, scss local variables and functions required in the compilation of the scss to css.

提交回复
热议问题