CSS Modules with SCSS
Clone this repository:
git clone https://github.com/traveloka/soya-next.git
cd soya-next/examples/css-modules-with-scss
Then, install and run it:
npm install
npm start
By default all of your SASS and SCSS files are scoped globally. To make them scoped locally (CSS Modules), you need to suffix them with
.mod.sass
, .module.sass
, .mod.scss
or .module.scss
.Last modified 4yr ago