答案 0 :(得分:0)
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular.io-example": {
"root": "",
"projectType": "application",
"prefix": "app",
"AA": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
{
"glob": "favicon.ico",
"input": "src",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
},
{
"glob": "**/*",
"input": "src/api-data",
"output": "/api-data"
}
],
"styles": [
{
"input": "src/styles.scss"
}
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "angular.io-example:build"
},
"configurations": {
"production": {
"browserTarget": "angular.io-example:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "angular.io-example:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
{
"input": "styles.css"
}
],
"scripts": [],
"assets": [
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
}
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"angular.io-example-e2e": {
"root": "e2e/",
"projectType": "application",
"AA": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "angular.io-example:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
}
}
在此处输入代码{ “ $ schema”:“ ./ node_modules/@angular-devkit/core/src/workspace/workspace-schema.json”, “版本”:1, “ newProjectRoot”:“项目”, “项目”:{ “ angular.io-example”:{ “根”: ””, “ projectType”:“应用程序”, “ prefix”:“ app”, “ AA”:{ “内部版本”:{ “ builder”:“ @ angular-devkit / build-angular:browser”, “选项”:{ “ outputPath”:“ dist”, “ index”:“ src / index.html”, “ main”:“ src / main.ts”, “ polyfills”:“ src / polyfills.ts”, “ tsConfig”:“ src / tsconfig.app.json”, “资产”:[ { “ glob”:“ favicon.ico”, “ input”:“ src”, “输出”:“ /” }, { “ glob”:“ / ”, “ input”:“ src / assets”, “输出”:“ /资产” }, { “ glob”:“ / ”, “ input”:“ src / api-data”, “输出”:“ / api-data” } ], “样式”:[ { “输入”:“ src / styles.scss” } ], “脚本”:[] }, “配置”:{ “生产”: { “ fileReplacements”:[ { “ replace”:“ src / environments / environment.ts”, “ with”:“ src / environments / environment.prod.ts” } ], “优化”:是的, “ outputHashing”:“全部”, “ sourceMap”:否, “ extractCss”:是的, “ namedChunks”:false, “ aot”:是的, “ extractLicenses”:是的, “ vendorChunk”:否, “ buildOptimizer”:正确 } } }, “服务”:{ “ builder”:“ @ angular-devkit / build-angular:dev-server”, “选项”:{ “ browserTarget”:“ angular.io-example:build” }, “配置”:{ “生产”: { “ browserTarget”:“ angular.io-example:build:production” } } }, “ extract-i18n”:{ “ builder”:“ @ angular-devkit / build-angular:extract-i18n”, “选项”:{ “ browserTarget”:“ angular.io-example:build” } }, “测试”:{ “ builder”:“ @ angular-devkit / build-angular:karma”, “选项”:{ “ main”:“ src / test.ts”, “ polyfills”:“ src / polyfills.ts”, “ tsConfig”:“ src / tsconfig.spec.json”, “ karmaConfig”:“ src / karma.conf.js”, “样式”:[ { “ input”:“ styles.css” } ], “脚本”:[], “资产”:[ { “ glob”:“ favicon.ico”, “ input”:“ src /”, “输出”:“ /” }, { “ glob”:“ / *”, “ input”:“ src / assets”, “输出”:“ /资产” } ] } }, “棉绒”:{ “ builder”:“ @ angular-devkit / build-angular:tslint”, “选项”:{ “ tsConfig”:[ “ src / tsconfig.app.json”, “ src / tsconfig.spec.json” ], “排除”:[ “ / node_modules / ” ] } } } }, “ angular.io-example-e2e”:{ “ root”:“ e2e /”, “ projectType”:“应用程序”, “ AA”:{ “ e2e”:{ “ builder”:“ @ angular-devkit / build-angular:量角器”, “选项”:{ “ protractorConfig”:“ e2e / protractor.conf.js”, “ devServerTarget”:“ angular.io-example:serve” } }, “棉绒”:{ “ builder”:“ @ angular-devkit / build-angular:tslint”, “选项”:{ “ tsConfig”:“ e2e / tsconfig.e2e.json”, “排除”:[ “ / node_modules / **” ] } } } } } }