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”:”.”,

Published
Categorised as Blog, React