You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried all kinds of configurations, syntax specifications (for example includePaths: path.join(__dirname, 'node_modules/bootstrap/scss/bootstrap'), and many different sass import statements.
I've also tried importing three different scss libraries.
The error message is this:
Message:
assets/styles/main.scss
Error: File to import not found or unreadable: bootstrap.
on line 2 of assets/styles/main.scss
>> @import "bootstrap";
Is this the expected behavior, using full paths for each primary scss file? Either way, is there a place that this is documented? I'm not seeing it on the main Gulpjs site.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to be able to
@import 'purecss';
fromnode_modules
into my sass files.From what I'm digging up, adding the
includePaths
parameter to the call togulp.sass()
, pointed to./node_modules
should work.I have tried all kinds of configurations, syntax specifications (for example
includePaths: path.join(__dirname, 'node_modules/bootstrap/scss/bootstrap')
, and many different sass import statements.I've also tried importing three different scss libraries.
The error message is this:
I can import like this:
And with IncludePaths configured like above, I can include without the
node_modules
prefix, like this:Or with the following configuration, I can import using names only:
Is this the expected behavior, using full paths for each primary scss file? Either way, is there a place that this is documented? I'm not seeing it on the main Gulpjs site.
Thanks much.
Beta Was this translation helpful? Give feedback.
All reactions