Skip to content

jmckenney/webpack2-cssmodules-sass

 
 

Repository files navigation

Webpack 2 - CSS Modules - SASS

How to

This project allows you to use CSS Modules with SASS files.

styles.scss:

.red {
    background-color: red;
}

index.js:

import styles from './styles.scss'

console.log(JSON.stringify(scssStyles));
// { "red" : "styles__red___1nmnb" }

Installation

Install dependencies:

npm run install

Launching

Start the server:

npm start

Go to http://localhost:3000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.6%
  • HTML 7.4%
  • CSS 2.0%