是否有任何配置設置可以刪除這些空白的評論和空白?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