|
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | 6 | "angularexampleapp": { |
| 7 | + "i18n": { |
| 8 | + "locales": { |
| 9 | + "en": { |
| 10 | + "translation": "src/i18n/messages.en.xlf", |
| 11 | + "baseHref": "/" |
| 12 | + }, |
| 13 | + "es": "src/i18n/messages.es.xlf" |
| 14 | + } |
| 15 | + }, |
7 | 16 | "projectType": "application", |
8 | 17 | "schematics": { |
9 | 18 | "@schematics/angular:component": { |
|
42 | 51 | }, |
43 | 52 | "configurations": { |
44 | 53 | "en": { |
| 54 | + "budgets": [ |
| 55 | + { |
| 56 | + "type": "anyComponentStyle", |
| 57 | + "maximumWarning": "6kb" |
| 58 | + } |
| 59 | + ], |
45 | 60 | "outputPath": "dist/browser/", |
46 | | - "baseHref": "/", |
47 | 61 | "i18nFile": "src/i18n/messages.en.xlf", |
48 | | - "i18nFormat": "xlf", |
49 | 62 | "i18nLocale": "en", |
50 | 63 | "i18nMissingTranslation": "error", |
51 | 64 | "assets": [ |
|
67 | 80 | ] |
68 | 81 | }, |
69 | 82 | "es": { |
70 | | - "outputPath": "dist/browser/es/", |
71 | | - "baseHref": "/es/", |
72 | | - "i18nFile": "src/i18n/messages.es.xlf", |
73 | | - "i18nFormat": "xlf", |
74 | | - "i18nLocale": "es", |
| 83 | + "budgets": [ |
| 84 | + { |
| 85 | + "type": "anyComponentStyle", |
| 86 | + "maximumWarning": "6kb" |
| 87 | + } |
| 88 | + ], |
| 89 | + "localize": [ |
| 90 | + "es" |
| 91 | + ], |
| 92 | + "outputPath": "dist/browser", |
75 | 93 | "i18nMissingTranslation": "error", |
76 | 94 | "assets": [ |
77 | 95 | { |
|
128 | 146 | "type": "initial", |
129 | 147 | "maximumWarning": "2mb", |
130 | 148 | "maximumError": "5mb" |
| 149 | + }, |
| 150 | + { |
| 151 | + "type": "anyComponentStyle", |
| 152 | + "maximumWarning": "6kb" |
131 | 153 | } |
132 | 154 | ], |
133 | 155 | "outputPath": "dist/browser/", |
134 | | - "baseHref": "/", |
135 | 156 | "i18nFile": "src/i18n/messages.en.xlf", |
136 | | - "i18nFormat": "xlf", |
137 | 157 | "i18nLocale": "en", |
138 | 158 | "i18nMissingTranslation": "error" |
139 | 159 | }, |
|
144 | 164 | "with": "src/environments/environment.prod.ts" |
145 | 165 | } |
146 | 166 | ], |
| 167 | + "localize": [ |
| 168 | + "es" |
| 169 | + ], |
147 | 170 | "optimization": true, |
148 | 171 | "outputHashing": "all", |
149 | 172 | "sourceMap": false, |
150 | 173 | "extractCss": true, |
151 | 174 | "namedChunks": false, |
152 | | - "aot": true, |
153 | 175 | "extractLicenses": true, |
154 | 176 | "vendorChunk": false, |
155 | 177 | "buildOptimizer": true, |
|
158 | 180 | "type": "initial", |
159 | 181 | "maximumWarning": "2mb", |
160 | 182 | "maximumError": "5mb" |
| 183 | + }, |
| 184 | + { |
| 185 | + "type": "anyComponentStyle", |
| 186 | + "maximumWarning": "6kb" |
161 | 187 | } |
162 | 188 | ], |
163 | | - "outputPath": "dist/browser/es/", |
164 | | - "baseHref": "/es/", |
165 | | - "i18nFile": "src/i18n/messages.es.xlf", |
166 | | - "i18nFormat": "xlf", |
167 | | - "i18nLocale": "es", |
| 189 | + "outputPath": "dist/browser", |
168 | 190 | "i18nMissingTranslation": "error" |
169 | 191 | } |
170 | 192 | } |
|
243 | 265 | }, |
244 | 266 | "configurations": { |
245 | 267 | "production-en": { |
| 268 | + "optimization": true, |
246 | 269 | "outputPath": "dist/server/en", |
247 | 270 | "i18nFile": "src/i18n/messages.en.xlf", |
248 | 271 | "i18nFormat": "xlf", |
|
256 | 279 | ] |
257 | 280 | }, |
258 | 281 | "production-es": { |
| 282 | + "optimization": true, |
259 | 283 | "outputPath": "dist/server/es", |
260 | 284 | "i18nFile": "src/i18n/messages.es.xlf", |
261 | 285 | "i18nFormat": "xlf", |
|
314 | 338 | "configurations": { |
315 | 339 | "production": { |
316 | 340 | "project": "projects/ngx-example-library/ng-package.prod.json" |
317 | | - } |
| 341 | + , "tsConfig": "projects/ngx-example-library/tsconfig.lib.prod.json" |
| 342 | +} |
318 | 343 | } |
319 | 344 | }, |
320 | 345 | "test": { |
|
0 commit comments