I try to import into the .scss file loaded using css modules a file without specifying the full name, so to import a file named _settings.scss I cannot use settings.scss or _settings
whatever .scss file contains a comment starting with //; I get SyntaxError (1:1) Unknown word
If I want to import a file from a module e.g. Bootstrap mixins file it cannot resolve @import "bootstrap/scss/_mixins.scss"; as it returns the error Module not found: Error: Can't resolve './bootstrap/scss/_mixins.scss', I need to specify the full relative path @import "../../node_modules/bootstrap/scss/_mixins.scss";
So far my
postcss.config.js
file looks like this:and my
webpack.config.js
includes these parts:the webpack build breaks always whenever:
_settings.scss
I cannot usesettings.scss
or_settings
//
; I getSyntaxError (1:1) Unknown word
@import "bootstrap/scss/_mixins.scss";
as it returns the errorModule not found: Error: Can't resolve './bootstrap/scss/_mixins.scss'
, I need to specify the full relative path@import "../../node_modules/bootstrap/scss/_mixins.scss";