Angular.json

angular.json 项目配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"projects": {
"LuffyKit": {
// 项目类型 application / library
"projectType": "application",
"root": "",
// 根目录
"sourceRoot": "src",
// 模块组件等创建前缀
"prefix": "mh",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
// build 输出路径
"outputPath": "dist/luffy-kit",
// 根文件
"index": "src/index.html",
"main": "src/main.ts",
"inlineStyleLanguage": "scss",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
// 开放目录(可直接导航显示)
"assets": [
"src/favicon.ico",
"src/assets"
],
// 样式预处理目录
// 可进行导入无需相对路径 @import 'fileName' && @import './src/style/fileName.scss'
"stylePreprocessorOptions": {
"includePaths": [
"./src/assets/style"
]
},
"styles": [
"@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": []
}
}
}
}
}

本文作者: 孟 虎
本文链接: https://menghu1994.github.io/blog/2023/10/Angular/angular.json/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!