Answer the question
In order to leave comments, you need to log in
How can Webpack Dev Server for React have a single entry point for all requests?
For the Webpack Dev Server, do I need to make sure that all requests that come into it are processed by one entry point? Those. so that GET /, GET /about requests, etc. index.html was always given. This is necessary so that in the React project, being on any URL, do page updates like Ctrl + R ...
Answer the question
In order to leave comments, you need to log in
module.exports = {
//...
devServer: {
historyApiFallback: true
}
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question