-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: @angular-devkit/architectarea: @angular/clifeatureIssue that requests a new featureIssue that requests a new feature
Milestone
Description
Versions
v6
Observed behavior
You cannot use --prod
with a custom configuration
since --prod
is an alias for --configuration=production
. This means that if I make a custom configuration for my project, I need to duplicate it for the prod build to include everything from the production
configuration.
Desired behavior
I'd like to be able to mix configurations, where each one overwrites the precedent. For example with -c=prod,xxx
, where xxx
overwrites production
values if they both define the same property
For example if I'm doing i18n, I would like to have something like that:
"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
},
"fr": {
"aot": true,
"outputPath": "dist/my-project-fr/",
"i18nFile": "src/locale/messages.fr.xlf",
"i18nFormat": "xlf",
"i18nLocale": "fr",
"i18nMissingTranslation": "error"
}
}
},
And use -c=production,fr
, or --prod -c=fr
buu700, elvisbegovic, intellix, flamingbug, PapaNappa and 132 morebagage, ihym, klemenoslaj, splincode, Ismaestro and 1 morerijine, bagage, ihym, klemenoslaj, splincode and 5 morebagage, robertjk, ihym, Maistho, ksz-ksz and 9 morekrzysztof-raciniewski, bagage and antoniogenarogrreeenn, originalfrostig, Abrissirba, tomasklingen, bagage and 1 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: @angular-devkit/architectarea: @angular/clifeatureIssue that requests a new featureIssue that requests a new feature