What is the correct naming convention for Sass partial files?

Prepare for the Mendix Intermediate Certification Exam using engaging quizzes! Access multiple-choice questions, hints, and detailed explanations. Ace your test!

The correct naming convention for Sass partial files is to prefix the file name with an underscore, resulting in a format like _partial-name.scss. This convention indicates that the file is a partial and is intended to be included in other Sass files rather than compiled into its own standalone CSS file. The underscore helps to differentiate the partial from regular Sass files that do not use the underscore and can be compiled directly into CSS.

Using this convention allows for better organization and modularization of styles in larger projects, as it signals to developers that these partial files are meant to be imported and used in other stylesheets. The absence of the underscore in other forms listed does not conform to this convention, leading to confusion about compilation and file purpose.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy