From 9bd6d0df8ebf17fd3ae59d9762f17fc0fb270600 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 12 Mar 2023 00:11:39 +0100 Subject: [PATCH] Updating angular prod build cli command #587 --- gulpfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index d8c56478..718d0e2d 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -153,7 +153,7 @@ gulp.task( const tasks = []; createFrontendTask( 'build-frontend-release default', - 'ng build --prod --no-progress --output-path=./release/dist' + 'ng build --configuration production --no-progress --output-path=./release/dist' ); tasks.push('build-frontend-release default'); return gulp.series(...tasks); @@ -257,7 +257,7 @@ const simpleBuild = (isProd: boolean): any => { const tasks = []; let cmd = 'ng build '; if (isProd) { - cmd += ' --prod --no-extract-licenses '; + cmd += ' --configuration production --no-extract-licenses '; } createFrontendTask('build-frontend default', cmd); tasks.push('build-frontend default');