Create a new Parcel application with CSS modules and start it via parcel index.html but DO NOT create a .postcssrc config file yet.
Quit the Parcel server then create a .postcssrc file with { "modules": true } as the content.
Start the Parcel server again.
Note that CSS modules do not work correctly at this point.
In order to make CSS modules work now you must rm -rf .cache and restart the Parcel server.
Example repo:
https://gist.github.com/wavebeem/c3afffcb4d757bf9d771fe1f0a9cf7e4
We should probably come up with a better story on how to create cache keys.
Maybe Asset can expose a function to add information to the cache key
I haven't dug into Parcel internals at all yet, but is there any concept of dependent files that will trigger a rebuild?
@wavebeem Can you expand upon that?
Took a spin at this, see #297
Most helpful comment
Took a spin at this, see #297