Skip to content

Commit 5352a0c

Browse files
alaycockiansu
authored andcommitted
Add note to docs about using Sass and Flow together (#5823)
* Add default values to `file_ext` note * Update note to include a link to the relevant docs * Update copy to indicate the default values * Add missing space
1 parent 92b533e commit 5352a0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus/docs/adding-a-sass-stylesheet.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ This will allow you to do imports like
3434
3535
> **Note:** You must prefix imports from `node_modules` with `~` as displayed above.
3636
37-
> **Note:** If you're using Flow, add the following to your `.flowconfig` so it'll recognize the `.sass` or `.scss` imports.
37+
> **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.
3838
>
3939
> ```
4040
> [options]
41+
> module.file_ext=.js
42+
> module.file_ext=.jsx
43+
> module.file_ext=.mjs
44+
> module.file_ext=.json
4145
> module.file_ext=.sass
4246
> module.file_ext=.scss
4347
> ```

0 commit comments

Comments
 (0)