When changing a JS file under the watch command it will get stuck in a loop reloading the page unless I stop and restart the server, producing this error in the console:
Console error
My config.json
{ "entry": { "main": [ "./scripts/main.js", "./styles/main.scss" ], "customizer": [ "./scripts/customizer.js" ] }, "publicPath": "/arnoud_oostveen/wp-content/themes/arnoud_oostveen", "devUrl": "http://localhost/arnoud_oostveen/", "proxyUrl": "http://localhost:3000", "cacheBusting": "[name]_[hash:8]", "watch": [ "{src,templates}/**/*.php" ], "browsers": [ "last 2 versions", "android 4", "opera 12" ] }
local environment:
WordPress version: latest/4.7.2
Windows 10
NPM/Node version: 4.0.5/6.9.1