You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardexpand all lines: template/README.md
+8
Original file line number
Diff line number
Diff line change
@@ -598,6 +598,14 @@ This will allow you to do imports like
598
598
599
599
> **Note:** You must prefix imports from `node_modules` with `~` as displayed above.
600
600
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
+
601
609
## Post-Processing CSS
602
610
603
611
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