Streea85
Streea85

Reputation: 11

Including files in Sass as opposed to scss

I'm thinking of changing from SCSS syntax over to SASS.

The one thing I'm unclear on is how to import other files, as there seems to be a very large lack of guides for SASS as opposed to SCSS.

In scss I right the following for my main.scss

@include "folder/_file.scss";

So in sass, would that be

+'folder/_file.sass'

Or am I on the wrong track?

Upvotes: 0

Views: 44

Answers (1)

cimmanon
cimmanon

Reputation: 68339

From the official Sass documentation:

@import

The @import directive in Sass does not require quotes, although they may be used. For example, this SCSS:

@import "themes/dark";
@import "font.sass";

would be this Sass:

@import themes/dark
@import font.sass

Upvotes: 1

Related Questions