An example of using postcss plugins with css-modules. This is to accompany http://x-team.com/2015/08/css-modules-rethinking-the-past/
Take a look in src/styles/*.css to see how we're doing things like:
- css variables (with postcss-css-variables)
- media query constants (with postcss-custom-media)
- nested rules (with postcss-nested)
- australian enhancements (with postcss-australian-stylesheets)
You can also take a look at the generated css to see the result of autoprefixer.
npm install
npm start
And then open http://localhost:8000 in a browser.
PostCSS plugins are passed in as configuration to css-modulesify. You can see how we're doing that in the monobrow config and read more in the css-modulesify docs
MIT