From 5352a0c0467dcf3e873dfc7b93930515c373149d Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Tue, 27 Nov 2018 16:06:33 -0700 Subject: [PATCH] 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 --- docusaurus/docs/adding-a-sass-stylesheet.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index dc3f77392be..ac095c2136e 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -34,10 +34,14 @@ This will allow you to do imports like > **Note:** You must prefix imports from `node_modules` with `~` as displayed above. -> **Note:** If you're using Flow, add the following to your `.flowconfig` so it'll recognize the `.sass` or `.scss` imports. +> **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. > > ``` > [options] +> module.file_ext=.js +> module.file_ext=.jsx +> module.file_ext=.mjs +> module.file_ext=.json > module.file_ext=.sass > module.file_ext=.scss > ```