Skip to content

Commit 8bce623

Browse files
rluedergaearon
authored andcommitted
Added note on update to .flowconfig for .scss imports (facebook#5321)
* Added note on update to .flowconfig for .scss imports Added a note aimed at Flow users on how to get Flow to recognize the .scss imports. * Mentioned .sass extension in note, added backticks
1 parent 886f405 commit 8bce623

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

template/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,14 @@ This will allow you to do imports like
598598
599599
> **Note:** You must prefix imports from `node_modules` with `~` as displayed above.
600600
601+
> **Note:** If you're using Flow, add the following to your `.flowconfig` so it'll recognize the `.sass` or `.scss` imports.
602+
603+
```
604+
[options]
605+
module.file_ext=.sass
606+
module.file_ext=.scss
607+
```
608+
601609
## Post-Processing CSS
602610

603611
This project setup minifies your CSS and adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it.

0 commit comments

Comments
 (0)