I've seen and encountered some issues regarding imports in Sass files. The proposed changes fixed the issues for me.
I use the property includePaths in .compilerc which is read by sass.js. The property includePaths is added to this.compilerOptions but is not a valid option for the compiler. So, after reading the property and adding the paths to be included to paths, I discard it before is gets passed to sass.compiler.
I've tested the changes in a standard project created by electron-forge init and added a few stylesheets containing imports (e.g. bootstap scss files).
I've seen and encountered some issues regarding imports in Sass files. The proposed changes fixed the issues for me.
I use the property
includePaths
in.compilerc
which is read bysass.js
. The propertyincludePaths
is added tothis.compilerOptions
but is not a valid option for the compiler. So, after reading the property and adding the paths to be included topaths
, I discard it before is gets passed to sass.compiler.I've tested the changes in a standard project created by
electron-forge init
and added a few stylesheets containing imports (e.g. bootstap scss files).The includePaths is added to
.compilerc
like:The includePaths are relative to the stylesheet being compiled.