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.
This commit is contained in:
1 parent
dd64842375
commit
6d6d57f2a4
1 file changed
+1
@@ -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.
|
||||
|
||||

|
||||
|
||||
Reference in new issue
Block a user