Get started with CSS Modules.
The master
branch has the bare minimum:
For info on using CSS Modules with Webpack take a look at the webpack demo.
hot-reload
: browserify-hmrpostcss
: adding autoprefixer and postcss pluginsthe-lot
: (babel + react + flow)
After fetching dependencies with npm install
, run these commands:
npm run build
(ornpm run watch
for watch-mode)- Open
index.html
in a browser (on OSX you can do this by enteringopen index.html
in a terminal).
You can also try running node src/index.js
to see the result of using CSS Modules in node.
Make some edits to src/
, then run npm run build
again and refresh the browser. ✨
MIT