azure-devops - Angular CLI:TFS 构建步骤中的 ng 构建警告
问题描述
我有一个我正在尝试通过 Azure DevOps 构建的 Angular 项目。当我在库项目上运行 ng build 时,有一些警告
ex(##[error]WARNING: autoprefixer: D:\Agent_work\1\s\Test\projects\test-library\src\components\test.component.css:4:5: start value has mixed support,考虑使用flex-start 代替)
构建步骤因此失败。这一步的命令是“ng build test-library”
TFS 中有没有办法或 ng build 上的设置忽略这些警告?
解决方案
请添加continueOnError
到您的任务:
- 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
推荐阅读
- c++ - 使用 strlen 的结果作为 char* 的长度
- python - MongoDB (pymongo):$in 用于具有多种可能性的字段“元组”
- sql-server - EF 将列数据作为列表或数组返回
- asp.net-core - 如何自定义 AspNetCore 3.x 身份视图?
- asp.net-core - 在剃刀页面中将数据作为 json 返回
- python - 如何在我的代码中查找并修复附近的“(”:语法错误
- flutter - Agora 云端录制:错误 404(Flutter + Google Cloud Function)
- ssl - Apache2 有时提供旧的 SSL 证书
- node.js - 如何使用queryInterface在续集迁移文件中传递偏执狂,下划线等选项
- functional-programming - Idris 在类型定义中使用 if 语句返回依赖类型签名错误