如何在 Azure 的 VSTS 构建定义中使用 --prod 标志构建
How to build with --prod flag in VSTS build definition in azure
我正在尝试为我的 angular 6 应用程序编写 构建定义。我想用 ng build --prod 标志构建我的 angular 应用程序。
我的构建定义如下所示:
我之前的构建步骤也是这样的:
我试过这个:
build with --prod flag
我在这里遗漏了什么吗?非常感谢帮助。
只需在 "Command and arguments" 字段中添加 --prod
标志(现在您有 run ng build
)。
以防万一,有人需要它。这就是我解决问题的方法。
在 npm 自定义构建定义中:
命令和参数 : 运行 ng 运行 "Website:build:production"
我正在尝试为我的 angular 6 应用程序编写 构建定义。我想用 ng build --prod 标志构建我的 angular 应用程序。
我的构建定义如下所示:
我之前的构建步骤也是这样的:
我试过这个: build with --prod flag
我在这里遗漏了什么吗?非常感谢帮助。
只需在 "Command and arguments" 字段中添加 --prod
标志(现在您有 run ng build
)。
以防万一,有人需要它。这就是我解决问题的方法。
在 npm 自定义构建定义中:
命令和参数 : 运行 ng 运行 "Website:build:production"