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 *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.