docs: webstorm info on how to watch partials (#6384)

Since file watchers ignore partials like `_component.scss` (underscore!) when imported in some `main.scss`, they won’t be prettified. Use the `COMPILE_PARTIAL=true` environment variable to also watch and prettify partials.
master
Dirk Schürjohann 2019-08-12 15:38:42 +02:00 committed by Lucas Duailibe
parent dd64842375
commit 6d6d57f2a4
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ In older IDE versions, select Custom and do the following configuration:
- **Arguments**: `--write [other options] $FilePathRelativeToProjectRoot$`
- **Output paths to refresh**: `$FilePathRelativeToProjectRoot$`
- **Working directory**: `$ProjectFileDir$`
- **Environment variables**: add `COMPILE_PARTIAL=true` if you want to run `prettier` on partials (like `_component.scss`)
- **Auto-save edited files to trigger the watcher**: Uncheck to reformat on Save only.
![Example](/docs/assets/webstorm/file-watcher-prettier.png)