So my set up is pretty simple
styleguide.config.js
module.exports = {
components: 'src/components/**/*.js',
require: [
path.join(__dirname, 'node_modules/bootstrap/scss/bootstrap.scss')
]
};
Whenever I run npm run styleguide I get this error:
Module parse failed: Unexpected character @ You may need an appropriate loader to handle this file type.
bootstrap.scss looks like this:
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/mixins";
...
...
I understand I need to add SASS-loader but the examples I found are using different context so I cant really figure them out yet.
p.s. SASS works outside React Styleguide when I run the app itself, not styleguide.