I have taken the build of angular project and got dist folder.when i am trying to open the index.html in browser.I am getting the following error like failed to load resources and file not found for inline.bundle.js ,polyfil.bundle.js and many files.
Though this files added in the script tag and i didnt change the path of this file still not working.But if i run this from live server it is working.
Explain why it is not working without server?
Why it is not loading the inline.bundle.js,polyfill.bundle.js which are js file?
由于基本 URL 已更改,因此找不到您的文件。
您可以使用以下方法解决此问题<base href="./">
在你的index.html
.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)