gregberge / error-overlay-webpack-plugin

Catch errors with style 💥✨
MIT License
873 stars 45 forks source link

Potential Overwriting of setupMiddlewares in devServer #108

Open nanianlisao opened 11 months ago

nanianlisao commented 11 months ago

Hello,

I am using the error-overlay-webpack-plugin in my project and I noticed that the devServer.setupMiddlewares is directly reassigned in the plugin's code. This could potentially overwrite any existing middlewares that have been set up.

Here is the code snippet:

https://github.com/gregberge/error-overlay-webpack-plugin/blob/64bf2c137d3f3b6ca5e9e315cc165e40aba8eee2/src/index.js#L36-L48

Could you please confirm if this is the intended behavior? If so, it might be helpful to add a note in the documentation to inform users about this.

Thank you for your time and assistance.

Argosax97 commented 4 months ago

I have the same issue.