This boilerplate is configured to use css-modules out of the box.
.css file extensions will use css-modules unless it has
If you need global styles, stylesheets with
.global.css will not go through the
css-modules loader. e.g.
If you want to import global css libraries (like
bootstrap), you can just write the following code in
Say, you want to import css file from font-awesome module. Use following syntax
Note the tilde
~ placed before module name.
Similar syntax is used for SCSS too.
Use following example project to learn how to migrate from CSS to SCSS
./src/img is the recommended folder.
Do not use
resources folder. It is actually intended for build assets.