Is there a simple way to add simple HTTP Basic Authentication to the Webpack Dev Server in a Zero-Configuration-React-App.
What I did:
create-react-app
, then built my whole app.npm run eject
.Is there a configuration for this or do I have to add a middleware? Or is the only / easiest way to use webpack together with express?
hi yes you can please look at setup key in webpack config or this url https://webpack.js.org/configuration/dev-server/#devserver-setup i have been there facing such issues, you can simply use basic-auth package to overcome your need