I have a script file named, index.js under the scripts folder which I am calling in the index.html file using the <script> tag. However, when I deploy, this script is not being imported. I do not see it being loaded in the browser debugger devtool as well.
What I may be missing here? It works locally using a webserver(or live server). Interesting to see that, the CSS file has been imported correctly.
The real problem is that you’re closing <script> tag inline, that is <script src="./scripts/index.js"/>. This is invalid HTML. <script> tag needs to be closed separately. I don’t know how it worked locally for you, but it didn’t work for me. I changed it to <script src="./scripts/index.js"></script> and it works.