Mixing configurations
See original GitHub issueVersions
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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:176
- Comments:21 (1 by maintainers)
Top Results From Across the Web
12.3: Various Types of Configuration Mixing
12.2: Mixing of Covalent and Ionic Configurations ... Such essential configuration mixing is often referred to as treating "essential CI".
Read more >Nuclear Moments and Configuration Mixing - NASA/ADS
Abstract. The nuclear static moments are calculated from the standpoint of configuration mixing in the jj-coupling shell model.
Read more >configuration mixing | Nuclear Physics 101
are mixed, than the two neutrons are correlated. This is called configuration mixing. According to B.A. Brown,. the configuration mixing on the above...
Read more >Hybrid Mixing Setup: An In-Depth look - PART 1 - YouTube
In this video Weezna shows his hybrid mixing setup. Using a combination of the DAW and analog gear/mixer, the hybrid mixes are made...
Read more >How to Set up Different Mix Configurations | Cubase Advance ...
The highly configurable MixConsole lets you set up different mix configurations for mixing in Cubase. This video shows you how to use the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this issue needs more attention. Our angular.json file is currently 14048 lines and growing, not even counting the multitude of i18n configurations that are yet to be implemented.
@hansl Personally i would set this issue to priority 2 (required). Instead of:
ng build -c=prod,theme1,en
andng serve -c=theme1,en
we have to make TONS configurations with TONS of duplicate code:
And this was just 2 themes and 2 languages. It multiplies for each other theme or language…