React build: open local index file in browser

If you tried to open the index.html file of the build folder of your React project and it doesn’t work, it’s because by default it’s trying to load files through your system root. Adding the following line to your package.json will allow you to open the file locally after rebuilding.

“homepage”:”.”,

Leave a comment

Your email address will not be published. Required fields are marked *