fix(angular): make server build depend on browser build (#13467)

This commit is contained in:
Colum Ferry 2022-11-29 11:27:21 +00:00 committed by GitHub
parent e3a19f4bd6
commit 11b224fec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -166,6 +166,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@nrwl/angular:webpack-server",
"options": Object {
"customWebpackConfig": Object {

View File

@ -170,6 +170,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@nrwl/angular:webpack-server",
"options": Object {
"customWebpackConfig": Object {

View File

@ -13,6 +13,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@angular-devkit/build-angular:server",
"options": Object {
"main": "apps/app1/server.ts",
@ -104,6 +107,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@angular-devkit/build-angular:server",
"options": Object {
"main": "apps/app1/server.ts",

View File

@ -15,6 +15,7 @@ export function updateProjectConfig(tree: Tree, schema: Schema) {
projectConfig.targets.build.configurations?.production?.fileReplacements;
projectConfig.targets.server = {
dependsOn: ['build'],
executor: '@angular-devkit/build-angular:server',
options: {
outputPath: `dist/${projectConfig.root}/server`,