Skip to content

Use component SCSS #1606

Answered by coderwurst
lagerfeuer asked this question in Q&A
Apr 30, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @lagerfeuer - did you ever find a solution to this problem? I'm in exactly the same situation as you, only that my ./Header.scss is called now ./Header.module.scss - but the styling isn't picked up.

static.config.js

['react-static-plugin-sass',
      {
        cssLoaderOptions: {
          modules: true,
          localIdentName: '[name]__[local]--[hash:base64:5]',
          importLoaders: 2
        }
 }],

Edit 22.12.21: Updated to include correct config from #1460 (comment) (savedyouaclick)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@coderwurst
Comment options

@lagerfeuer
Comment options

Answer selected by lagerfeuer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants