Add clarifying documentation for how to add a sass stylesheet on Windows (#6322)

This commit is contained in:
Monish
2019-03-25 02:09:51 +05:30
committed by Amy Lam
parent 5c637a488f
commit d3b19f9789

View File

@@ -42,6 +42,12 @@ If you set `SASS_PATH=node_modules:src`, this will allow you to do imports like
@import 'nprogress/nprogress'; // importing a css file from the nprogress node module
```
> **Note:** For windows operating system, use below syntax
>
> ```
> SASS_PATH=./node_modules;./src
> ```
> **Tip:** You can opt into using this feature with [CSS modules](adding-a-css-modules-stylesheet.md) too!
> **Note:** If you're using Flow, override the [module.file_ext](https://flow.org/en/docs/config/options/#toc-module-file-ext-string) setting in your `.flowconfig` so it'll recognize `.sass` or `.scss` files. You will also need to include the `module.file_ext` default settings for `.js`, `.jsx`, `.mjs` and `.json` files.