Skip to content

joshwnj/css-modules-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Modules Starter Kit

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.

Other branches (coming soon)

  • hot-reload: browserify-hmr
  • postcss: adding autoprefixer and postcss plugins
  • the-lot: (babel + react + flow)

Running the code

After fetching dependencies with npm install, run these commands:

  • npm run build (or npm run watch for watch-mode)
  • Open index.html in a browser (on OSX you can do this by entering open index.html in a terminal).

You can also try running node src/index.js to see the result of using CSS Modules in node.

Your turn

Make some edits to src/, then run npm run build again and refresh the browser. ✨

License

MIT

About

Get started with CSS Modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published