el_pup_le
el_pup_le

Reputation: 12189

@import susy file installed via npm

I just installed susy via npm but don't know how to include it in the main scss file. How can I import susy?

I've tried:

@import "icons";
@import "nav";
@import "page_home";
@import "../../../susy";

where susy is in /node_modules and main.scss is in /app/style/sass

Upvotes: 1

Views: 1525

Answers (2)

user5698601
user5698601

Reputation:

When you import a file you don't need to include the file extension _ or .scss. Sass is smart and will figure it out for you.

@import "../../../node_modules/susy/sass/susy";

Upvotes: 0

Guy
Guy

Reputation: 11315

Your path goes up to the root directory, but doesn't then go down into the node_modules/susy/ directory. Try updating @import to something like:

@import "../../../node_modules/susy/sass/_susy.scss

Upvotes: 2

Related Questions