答案 0 :(得分:0)
可能与此重复:https://stackoverflow.com/a/44988493/11289490
从那里复制答案:
从字面上看,您经历了同样的事情。我添加了 在 /src/index.html 中的main.js之前的vendor.js脚本-现在 在本地运行。
<!-- The polyfills js is generated during the build process --> <script src="build/polyfills.js"></script> <script src="build/vendor.js"></script> <!-- The bundle js is generated during the build process --> <script src="build/main.js"></script>