From 79a705a7140b9998cd405598379ef0736bf0f349 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Thu, 15 Nov 2018 15:00:30 -0700 Subject: [PATCH 1/4] Add default values to `file_ext` note --- docusaurus/docs/adding-a-sass-stylesheet.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index dc3f77392be..d0edc2ea49f 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -38,6 +38,10 @@ This will allow you to do imports like > > ``` > [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 > ``` From 065d24a3999d9d3adb5c541df637b10f0f8e8881 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Fri, 23 Nov 2018 22:28:34 -0700 Subject: [PATCH 2/4] Update note to include a link to the relevant docs --- docusaurus/docs/adding-a-sass-stylesheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index d0edc2ea49f..013b92c0f9d 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -34,7 +34,7 @@ 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, overwrite the [module.file_ext](https://flow.org/en/docs/config/options/#toc-module-file-ext-string) setting in your `.flowconfig` so it'll recognize the `.sass` or `.scss` imports. > > ``` > [options] From c3210f4b91ba8bc28d6aea7c2dc012c5e8b7dd55 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Tue, 27 Nov 2018 15:59:14 -0700 Subject: [PATCH 3/4] Update copy to indicate the default values --- docusaurus/docs/adding-a-sass-stylesheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index 013b92c0f9d..2e2f2e25751 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -34,7 +34,7 @@ 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, overwrite the [module.file_ext](https://flow.org/en/docs/config/options/#toc-module-file-ext-string) setting in 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] From 779f979ce7fefe147db7a9b9f70fc0f9eaea1207 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Tue, 27 Nov 2018 16:02:10 -0700 Subject: [PATCH 4/4] Add missing space --- docusaurus/docs/adding-a-sass-stylesheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index 2e2f2e25751..ac095c2136e 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -34,7 +34,7 @@ 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, 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. +> **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]