-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@angular/cli): build with multiple configurations #11107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can use this.
Create same configurations but with different fileReplacements array.
|
@duki994 , Unfortunately this does not solve the problem. I am looking for a solution where I can build my app with multiple configurations. This is not possible at the moment. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Desired functionality
I have an app which uses different material themes depending on the configuration used during the build. It would be extremely beneficial if we can specify multiple build configurations either from the terminal or inside the
angular.json
file. For example, like this in theangular.json
file inside theserve
entry:This is how
build
section of app'sangular.json
looks like:Current behavior is that when I specify the configuration, the
styles
from that configuration are built andbuild:options:styles
are ignored. I would like to add/build thestyles
specified in individual configuration along with thestyles
specified inbuild:options
. For example, using the following command:ng build --configuration theme-one
The above command should build
"src/styles.scss"
and"src/styles/themes/theme-one/material.theme.scss"
. Same fortheme-two
.The text was updated successfully, but these errors were encountered: