CSS modules purging #8521
-
|
Hello! I am using the CSS modules for writing styles. Some of the classes aren't applied to the markup immediately. Example, import { stateClass } from './index.module.css';
<div className={someCondition ? stateClass : '' }> ... </div>And the rules of the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
No. It is my bad. I didn't notice that I've added an extra character to the CSS class list, which simply invalidates the class selector. Everything works fine. |
Beta Was this translation helpful? Give feedback.
No. It is my bad. I didn't notice that I've added an extra character to the CSS class list, which simply invalidates the class selector. Everything works fine.