It is not recommended to develop projects this way. But here is a solution I used to import files that I downloaded locally into the project. I put in my statics folder my js files, and imported it into template.html this way the webpack can solve the “statics” directory for me automatically