Stefan
Stefan

Reputation: 14863

Angular-Cli: Different paths for Develop and Publish output

I have a "default" angular-cli setup. Can I build the Develop and Publish output in two different Folders/ Filenames? In the documantion, I only found the outDir property, but it applies for dev and prod build.

Can I somehow set this, e.g. in the environment.ts / environment.prod.ts.

Upvotes: 0

Views: 329

Answers (1)

Stefan
Stefan

Reputation: 14863

It turns out you can override the default settings from your angular-cli.json by passing commandline arguments.

Example:

ng build --output-path \"RELEASEPATH"  --prod

Upvotes: 1

Related Questions