I've been experiencing this for a while now. The styles-objects I import from m.css files sometimes stop reloading.
Coding happily
Suddenly my CSS declarations seem to have no effect whatsoever
console.log(styles) -> wrong/old object keys!
making changes to the html, js or m.css has no effect
kill meteor and restart
works again
It might have something to do with renaming. I just now had an old stylesheet with an scss suffix containing an empty CSS rule .myElement {}
I then renamed the file, so the suffix was m.css (which is processed by CSS modules in my config) and tried using it with CSS modules and bam, the file got stuck in the limbo. Importing it just gave me the empty styles under key myElement. Changing the m.css-files contents to .anotherElement { color: red } would have no effect.
I've been experiencing this for a while now. The styles-objects I import from
m.css
files sometimes stop reloading.console.log(styles)
-> wrong/old object keys!html
,js
orm.css
has no effectIt might have something to do with renaming. I just now had an old stylesheet with an
scss
suffix containing an empty CSS rule.myElement {}
I then renamed the file, so the suffix was
m.css
(which is processed by CSS modules in my config) and tried using it with CSS modules and bam, the file got stuck in the limbo. Importing it just gave me the empty styles under keymyElement
. Changing them.css
-files contents to.anotherElement { color: red }
would have no effect.