File tree 3 files changed +35
-5
lines changed
3 files changed +35
-5
lines changed Original file line number Diff line number Diff line change 4
4
"newProjectRoot" : " projects" ,
5
5
"projects" : {
6
6
"angular-course" : {
7
+ "i18n" : {
8
+ "locales" : {
9
+ "fr" : {
10
+ "translation" : " src/locale/messages.fr.xlf" ,
11
+ "baseHref" : " "
12
+ }
13
+ }
14
+ },
7
15
"root" : " " ,
8
16
"sourceRoot" : " src" ,
9
17
"projectType" : " application" ,
13
21
"build" : {
14
22
"builder" : " @angular-devkit/build-angular:browser" ,
15
23
"options" : {
24
+ "aot" : true ,
16
25
"outputPath" : " dist/angular-course" ,
17
26
"index" : " src/index.html" ,
18
27
"main" : " src/main.ts" ,
39
48
},
40
49
"configurations" : {
41
50
"production" : {
51
+ "budgets" : [
52
+ {
53
+ "type" : " anyComponentStyle" ,
54
+ "maximumWarning" : " 6kb"
55
+ }
56
+ ],
42
57
"fileReplacements" : [
43
58
{
44
59
"replace" : " src/environments/environment.ts" ,
57
72
},
58
73
"fr" : {
59
74
"aot" : true ,
75
+ "budgets" : [
76
+ {
77
+ "type" : " anyComponentStyle" ,
78
+ "maximumWarning" : " 6kb"
79
+ }
80
+ ],
60
81
"outputPath" : " dist/angular-course-fr/" ,
61
82
"i18nFile" : " src/locale/messages.fr.xlf" ,
62
- "i18nFormat" : " xlf" ,
63
83
"i18nLocale" : " fr" ,
64
84
"i18nMissingTranslation" : " ignore"
65
85
}
147
167
}
148
168
}
149
169
},
150
- "defaultProject" : " angular-course"
170
+ "defaultProject" : " angular-course" ,
171
+ "cli" : {
172
+ "analytics" : " e878a578-eb4f-4c7c-bbaf-6f0c4ac42135"
173
+ }
151
174
}
Original file line number Diff line number Diff line change
1
+ /***************************************************************************************************
2
+ * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
3
+ */
4
+ import '@angular/localize/init' ;
1
5
/**
2
6
* This file includes polyfills needed by Angular and is loaded before the app.
3
7
* You can add your own extra polyfills to this file.
Original file line number Diff line number Diff line change 4
4
"outDir" : " ../out-tsc/app" ,
5
5
"types" : []
6
6
},
7
- "exclude" : [
8
- " test.ts" ,
9
- " **/*.spec.ts"
7
+ "files" : [
8
+ " main.ts" ,
9
+ " polyfills.ts"
10
+ ],
11
+ "include" : [
12
+ " src/**/*.d.ts"
10
13
]
11
14
}
You can’t perform that action at this time.
0 commit comments