是否有任何配置设置可以删除这些空白的评论和空白?Angular应用程序中的空评论
我生成命令是ng build --environment prod --progress false --target production
和tsconfig是:
{
"compileOnSave": false,
"compilerOptions": {
"alwaysStrict": true,
"baseUrl": "/",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"lib": [ "es2015", "dom" ],
"module": "es2015",
"moduleResolution": "node",
"newLine": "CRLF",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"outDir": "./dist/out-tsc",
"removeComments": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"strictNullChecks": true,
"target": "es5",
"typeRoots": [ "./node_modules/@types" ]
}
}
@角/ CLI:1.0.4
节点:7.2.1
OS:win32的64
@angular/common:4.1.3
谢谢。
这些注释仅在Chrome开发人员工具中显示为空吗?否则,我不明白如何可以帮助角。我有一个想法,tsconfig选项“removeComments”不应该与一个角度的应用程序一起使用,但应用程序奇怪地按预期工作。 – Zygimantas