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

Niko_D picture Niko_D · Jan 20, 2016 · Viewed 51.2k times · Source

Why put _ in front of the filename in scss?

_filename.scss - Why does it need _ ?

Answer

Fabian Parra picture Fabian Parra · Jan 20, 2016

The _ (underscore) is a partial for scss. That means the stylesheet its going to be imported (@import) to a main stylesheet i.e. styles.scss. The advantage on using partials is that you can use many files to organize your code and everything will be compiled on a single file.