首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >角CLI: TFS构建步骤中的ng构建警告

角CLI: TFS构建步骤中的ng构建警告
EN

Stack Overflow用户
提问于 2020-09-08 19:52:32
回答 2查看 283关注 0票数 0

我有一个棱角分明的项目,我正试图通过Azure DevOps构建。当我在库项目上运行ng构建时,有一些警告

示例( D:\Agent_work\1\s\Test\projects\test-library\src\components\test.component.css:4:5:启动值具有混合支持,请考虑使用flex)。

因此,构建步骤失败。此步骤的命令是"ng构建测试库“。

TFS中是否存在忽略这些警告的方法或ng构建的设置?

EN

回答 2

Stack Overflow用户

发布于 2020-09-08 23:06:57

请将continueOnError添加到任务中:

代码语言:javascript
复制
- task: string  # reference to a task and version, e.g. "VSBuild@1"
  condition: expression     # see below
  continueOnError: boolean  # 'true' if future steps should run even if this step fails; defaults to 'false'
  enabled: boolean          # whether or not to run this step; defaults to 'true'
  timeoutInMinutes: number  # how long to wait before timing out the task
  target: string            # 'host' or the name of a container resource to target

或者在这里,如果您使用经典的管道:

不过,我建议你去掉这个警告。

票数 1
EN

Stack Overflow用户

发布于 2020-09-11 07:57:06

您可以尝试将justify-content: start属性更改为justify-content: flex-start

有关详细信息,请参阅此文档

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63800726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档