创建角应用程序-> ng新命令,而不是借助-> ng build -prod构建它。
将dist文件夹中的所有文件放入生产服务器错误记分器后
与源“http://localhost/inline.318b50c57b4eba3d437b.bundle.js”一起加载失败。客户端:1加载失败与源“http://localhost/polyfills.515ed9df1f4876ab6cb6.bundle.js”。客户端:1加载失败与源“http://localhost/main.f46d9721702aed0cb018.bundle.js”。客户:1
发布于 2018-06-20 06:26:16
您需要像这样从构建文件夹中更改index.html文件的index.html-
<base href="/">至
<base href="./">https://stackoverflow.com/questions/50941523
复制相似问题