-1

I try to use ng build, but the error message says "Error: Unknown argument: prod" I used this command "ng build --prod --base-href=/website.github.io/" I tried to update everything I don't know what to do and what to change. I tried this in my angular application.

[! This is the output of the command I called]1

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
saDpooro
  • 49
  • 5

1 Answers1

2

The --prod argument has been removed in Angular 14 as it's the default for build.

If you want to specify environemnt, use ng build --configuration production

Bojan Kogoj
  • 5,321
  • 3
  • 35
  • 57