This is a simple CSS Modules demo with a very minimal webpack config.
- Make sure you have node.js installed
- Clone this repo
- run
npm install
- either run
npm run start
to run in development mode with live-reload and hot-module-replacement - or run
npm run build
to build the project
Have a look at the branches to see the demo code of my presentation.
no-modules-base
- "pre-launch" without modulesno-modules-fuckup
- typical fuckups that happen without a CSS architecture in placewebpack-modules
- how to have CSS next to components, no CSS Modules yetcss-modules-base
- CSS Modules enabled, configured for readable class namescss-modules-cssnext
- CSS Modules and postcss enabled, configured for mangled class names
Have fun!