Webpack watch not working on Webstorm on Windows?

WebstormWebpackIntellij 14Webpack Dev-Server

Webstorm Problem Overview


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

Webstorm Solutions


Solution 1 - Webstorm

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

Solution 2 - Webstorm

Also make sure you use Node's path construction instead of slashes. Example:

entry: {
     'MyPackage': path.join(__dirname, 'modules', 'PkgEntry.js'),
...

instead of:

entry: {
     'MyPackage': '\\modules\\PkgEntry.js'),
...

Solution 3 - Webstorm

Had the same issue today. And accepted answer didn't help me.

Check this page https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit and try to increase your Inotify Watches Limit. Helped me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionluanpedView Question on Stackoverflow
Solution 1 - WebstormlenaView Answer on Stackoverflow
Solution 2 - WebstormbsandhuView Answer on Stackoverflow
Solution 3 - WebstormVolodView Answer on Stackoverflow