Typescript angular2配置输出目录
我创建了我的第一个项目,并从 我用更改了我的配置tsconfig.jsonTypescript 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,
{
"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/