From 6d6d57f2a46e38bf4b80325aaf3602e831963ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20Sch=C3=BCrjohann?= Date: Mon, 12 Aug 2019 15:38:42 +0200 Subject: [PATCH] docs: webstorm info on how to watch partials (#6384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- docs/webstorm.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/webstorm.md b/docs/webstorm.md index a30d15b97..2b0bade59 100644 --- a/docs/webstorm.md +++ b/docs/webstorm.md @@ -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)