I built a react app , it works fine when i run it usinfg the command 'serve -s build' but as soon as i start my index.html using a live server , nothing loads . I am only able to see my favicon.ico and my background color ,apart from that nothing is visible as no js and css files are getting loaded . I even tried giving the homepage:"." and homepage:"./ " in my package.json , but still nothing happened . The CSS and JS file path in my index.html are correct as I am getting redirected to them if i CNtrl+click on the link using vscode . I am unable to understand the issue . It would be a great help if somebody could guide me forward .
I built a react app , it works fine when i run it usinfg the command 'serve -s build' but as soon as i start my index.html using a live server , nothing loads . I am only able to see my favicon.ico and my background color ,apart from that nothing is visible as no js and css files are getting loaded . I even tried giving the homepage:"." and homepage:"./ " in my package.json , but still nothing happened . The CSS and JS file path in my index.html are correct as I am getting redirected to them if i CNtrl+click on the link using vscode . I am unable to understand the issue . It would be a great help if somebody could guide me forward .