-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
When loading the application with the live client e.g. http://localhost:3000/webpack-dev-server/index.html the browser is reloaded on script/style changes. But when there is an syntax error (and using the NoErrorsPlugin) the browser is reloaded with the message: Errors while compiling. App ready. And an error screen is displayed just before the browser is reloaded. But if the browser is reloaded manually after this syntax error has occured (so it is the initial load) the error screen is displayed nicely with the title: Errors while compiling. App updated with errors. No reload!.
Is there a reason why the client reloads the browser on errors? Thinking of these lines in the client:
webpack-dev-server/client/index.js
Lines 47 to 48 in 8fddb2a
if(initial) return initial = false; | |
reloadApp(); |
Or are you open to change this somehow so the error message is shown until the syntax error is fixed and a new bundle is generated even when the error occurs during a regular reload (not just the initial load)?