Skip to content

ng build with multiple config same times #32322

@matteo-rama

Description

@matteo-rama

Command

build

Description

Hi,

i am in the need to build at the same times 3 diffferent env
so i run

ng build --config a
ng build --config b
ng build --config c

this 3 build goes to 3 different folders (a,b,c for lack of imagination) and used in subsequent process.
Since it take a moment to run ng build and running them in parallel seems to break node_modules folder for some reason (ie: running with ng build --config a &, ng buiòd --config b & .... produce an invalid json or some error while parsing)

what i wonder if it's not possible to run a single command that will build all the config at once, reusing the compiled code that won't change, to speed up the whole process

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions