Skip to content

Unique class names #4844

Answered by reidbarber
Oseryx asked this question in Q&A
Jul 31, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is done by CSS Modules during the build process. It creates unique class names that are locally scoped so that you don't have to worry about classes with the same name in different files overwriting each other if they're on the same page. Here are docs on how to use it in Parcel: https://parceljs.org/languages/css/#css-modules

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Oseryx
Comment options

Answer selected by Oseryx
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