It feels so much better to treat CSS as imports rather than global side effects:
An obvious benefit is that this makes CSS something we can statically analyze, enabling better refactoring and making it easier to understand when styles are no longer used and can be pruned.
@dandean what wizardry is this!?
@redoak It's https://github.com/css-modules/css-modules. Using this with webpack and postcss makes for a great combination.
GitHub - css-modules/css-modules: Documentation about css-modules

Documentation about css-modules. Contribute to css-modules/css-modules development by creating an account on GitHub.

GitHub
@dandean amazing. when the weather starts turning colder and i have fewer excuses not to work on my side project i'll definitely be playing with this