From d3b19f9789afc11f2fc8df8027f591eda3c34ba7 Mon Sep 17 00:00:00 2001 From: Monish Date: Mon, 25 Mar 2019 02:09:51 +0530 Subject: [PATCH] Add clarifying documentation for how to add a sass stylesheet on Windows (#6322) --- docusaurus/docs/adding-a-sass-stylesheet.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docusaurus/docs/adding-a-sass-stylesheet.md b/docusaurus/docs/adding-a-sass-stylesheet.md index 533f798accb..1ba76380e6a 100644 --- a/docusaurus/docs/adding-a-sass-stylesheet.md +++ b/docusaurus/docs/adding-a-sass-stylesheet.md @@ -42,6 +42,12 @@ If you set `SASS_PATH=node_modules:src`, this will allow you to do imports like @import 'nprogress/nprogress'; // importing a css file from the nprogress node module ``` +> **Note:** For windows operating system, use below syntax +> +> ``` +> SASS_PATH=./node_modules;./src +> ``` + > **Tip:** You can opt into using this feature with [CSS modules](adding-a-css-modules-stylesheet.md) too! > **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.