Skip to content
Discussion options

You must be logged in to vote

I had more moving parts coming into play here than I first thought. Thanks for the hints @wooorm and @ChristianMurphy even though I left out a lot of detail.

First, this is within a Storybook project (although I don't know if that part matters much). Second, this project is already using (s)css modules (I think this turned out to be an important factor).

When I was trying to include .scss files (even .scss files that did not end in .module.scss), our loaders for css modules were only looking for *.scss files so the file contents came back as undefined.

Here's what ended up working in my situation

Added a rule to load any file with ?raw query param as an "Asset Module"

config.module.rules.…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@phil-lgr
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
🏗 area/tools This affects tooling
4 participants