Webpack watch not working on Webstorm on Windows?

luanped picture luanped · Dec 10, 2015 · Viewed 13k times · Source

So basically I have a project using Webpack, if I build using Webpack -w, editing the file with another editor will trigger the watch; however if I edit the file using Webstorm, nothing will happen.

I have came across this post, which seems I'm not the only one, however that solution is for Ubuntu, so I was wondering if there is anything similar for Windows?

Thanks

Answer

lena picture lena · Dec 11, 2015

Seems Webpack watch doesn't work if the file is not saved directly. Please try turning 'Safe write' option ( Settings | Appearance & Behavior | System Settings | Use "safe write" (save changes to temporary file first)) off.

In 2020.* the option name is Back up files before saving