Answer the question
In order to leave comments, you need to log in
Why does gulp-sass swear when building a custom bootstrap with includePaths?
I'm trying to compile a custom version of bootstrap using scss sources.
At the moment it goes like this
// Core variables and mixins
@import "../../vendor/bootstrap/scss/variables"
@import "../../vendor/bootstrap/scss/mixins"
@import "../../vendor/bootstrap/scss/custom"
// Reset and dependencies
@import "../../vendor/bootstrap/scss/normalize"
@import "../../vendor/bootstrap/scss/print"
// Core CSS
@import "../../vendor/bootstrap/scss/reboot"
...
...
.pipe(sass({
outputStyle: 'expanded',
includePaths: ['app/vendor/bootstrap/scss']
}))
...
@import "variables"
@import "mixins"
@import "custom"
...
[19:46:59] Starting 'styles'...
[19:46:59] gulp-notify: [Styles] app\vendor\bootstrap\scss\_reboot.scss
Error: no mixin named hover-focus
Backtrace:
app/vendor/bootstrap/scss/_reboot.scss:167
on line 167 of app/vendor/bootstrap/scss/_reboot.scss
>> @include hover-focus {
-----------^
[19:46:59] Finished 'styles' after 268 ms
Answer the question
In order to leave comments, you need to log in
Oh, as always, the problem was solved in the most banal, albeit extremely non-obvious way. =\
You had to explicitly set the file extension.
// Core variables and mixins
@import "variables.scss"
@import "mixins.scss" <==
@import "custom"
// Reset and dependencies
@import "normalize"
@import "print"
// Core CSS
@import "reboot"
@import "type"
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question