Typescript angular2配置输出目录

Typescript angular2配置输出目录,typescript,angular,lite-server,Typescript,Angular,Lite Server,我创建了我的第一个项目,并从 我用更改了我的配置tsconfig.json { "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false,

我创建了我的第一个项目,并从

我用更改了我的配置tsconfig.json

{

"compilerOptions": {
  "target": "es5",
  "module": "system",
  "moduleResolution": "node",
  "sourceMap": true,
  "emitDecoratorMetadata": true,
  "experimentalDecorators": true,
  "removeComments": false,
  "noImplicitAny": false,
  "outDir": "dist"  <---- NEW 
 },
   "exclude": [
     "node_modules",
     "typings/main",
    "typings/main.d.ts"
    ]
}
{
“编译器选项”:{
“目标”:“es5”,
“模块”:“系统”,
“moduleResolution”:“节点”,
“源地图”:正确,
“emit decoromentadata”:正确,
“实验生态学者”:没错,
“removeComments”:false,
“noImplicitAny”:错,

“outDir”:“dist”我认为您不能将
baseDir
参数传递给
lite server
。不过,我看不到中或中记录的cli参数。您必须有一个
bs config.json
文件

{
   "server": { "baseDir": "./dist" }
}

当然,这需要您将
index.html
移动到
dist/

内部。我认为您不能将
baseDir
参数传递到
lite server
。虽然,我看不到中或中记录的cli参数。您必须拥有
bs config.json
文件

{
   "server": { "baseDir": "./dist" }
}
当然,这需要您将
index.html
移动到
dist/