如何修复“ ng build --prod --deploy-url =“ / wp-content / themes / {name_theme} / dist /”-它无法正常工作

时间:2019-03-28 09:43:13

标签: angular wordpress wamp

我在Wordpress上创建模板Angular 7。本地(http://localhost:4200)都很好,但是当我要进行ng build --prod --deploy-url =“ / wp-content / themes / {theme_name} / dist /时,它不能正常工作。主题应该开始,并且看起来不错,但是当我单击菜单时该站点刷新了。我不知道为什么。我的英语不太好。请冷静一下。

1 个答案:

答案 0 :(得分:0)

我认为您需要output path选项

ng build --output-path = wp-content / themes / {theme_name} / dist / --prod“