Replies: 1 comment 1 reply
-
I just want to point out that you can call the style between brackets (i.e: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I thought my HMR wasn't working when I couldn't get my styles to apply!
If I have
<h1 className={styles.postLink}>Post</h1>
in a Gatsby site with CSS Modules, I can then just call.post-link
in the CSS/SCSS file instead of.postLink
. This is a much preferred convention when dealing with CSS.I presumed it might have been a CSS Modules default (to allow kebab-case), seeing as how there's no mention of it in the Gatsby docs.
Is there a reason why Next.js doesn't allow it?
Is it possible to add it in yourself with some configuration, and/or will that option be added in the future? (presuming it wasn't purposely removed)
Beta Was this translation helpful? Give feedback.
All reactions