I'm trying to merge an HTML/CSS admin template that I have bought online, into my CRA app.
The problem is that when I add the CSS of that template into my index.html
inside the header
section, and the CSS file does not exist, the server returns the home page.
I know this behavior is required for SPA, that server should return the home page for all routes, because routes are handled on the client-side, but in this case, I need to temporarily disable this feature and ask the server to return 404 if it does not find the resource.
How can I do it in create-react-app?