【发布时间】:2016-06-19 09:46:54
【问题描述】:
这是我的 tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"outDir": "wwwroot/app/source/"
},
"exclude": [
"node_modules",
"bower_components",
"wwwroot",
"typings/main",
"typings/main.d.ts"
]
}
如您所见,sourceMap 选项设置为true,这是因为我需要它来调试我的应用程序。
但我只在 debug 模式 需要它,所以我想在运行 release 模式 gulp 脚本时将它设置为 false。
有没有办法强制--sourceMap=fase?
【问题讨论】:
标签: typescript gulp tsc