diff --git a/apps/api/project.json b/apps/api/project.json index d6c3171e1..c4c1be7ac 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -7,6 +7,9 @@ "generators": {}, "targets": { "build": { + "configurations": { + "production": {} + }, "outputs": ["{workspaceRoot}/dist/apps/api"] }, "copy-assets": { diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js index d5b07e73c..5a882bb8e 100644 --- a/apps/api/webpack.config.js +++ b/apps/api/webpack.config.js @@ -7,7 +7,6 @@ const configValues = { default: { compiler: 'tsc', deleteOutputPath: false, - generatePackageJson: true, main: './src/main.ts', outputPath: 'dist/apps/api', outputHashing: 'none', @@ -16,15 +15,16 @@ const configValues = { tsConfig: './tsconfig.app.json' }, production: { - optimization: true, extractLicenses: true, - inspect: false, fileReplacements: [ { replace: './src/environments/environment.ts', with: './src/environments/environment.prod.ts' } - ] + ], + generatePackageJson: true, + inspect: false, + optimization: true } } };