browser-sync not seeing WebStorm editor changes
Hey,
I am trying to get browser-sync working, along with my WebStorm IDE. The WebStorm editor doesn't have an explicit save, of course, it just constantly saves your file as you edit it. But this seems to fool browser-sync. browser-sync is not reliably updating my web page when I change a CSS file in WebStorm. It might update in 10 seconds, or 20 seconds, or right away. If, instead, I open VS Code on the CSS file, make a change and hit Ctrl+S, browser-sync picks it up flawlessly and my web page updates.
Is there a setting that can make the WebStorm editor work better with browser-sync?
Thanks,
Eric
请先登录再写评论。
1. WebStorm normally doesn't auto-save files immediately on each change; hit Ctrl+S to save files explicitly once you like to refresh your app
2. browser-sync may have problems with 'safe writes'. Please try disabling 'Use "safe write"' in File | Settings | Appearance & Behavior | System Settings - does it help?
Thanks, Elena, I just didn't look far enough down in the File menu to see Save All (Ctrl+S). That does indeed work and solves my problem!
I saw the suggestion to turn off Safe Write in a browser-sync github issue, and I tried it, but it didn't make any difference.
Eric
>I saw the suggestion to turn off Safe Write in a browser-sync github issue, and I tried it, but it didn't make any difference.
You still need hitting Ctrl+S, with or without safe writes; but browser-sync reloading will be more reliable with this feature turned off