fix(angular): make server build depend on browser build (#13467)
This commit is contained in:
parent
e3a19f4bd6
commit
11b224fec3
@ -166,6 +166,9 @@ Object {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production",
|
"defaultConfiguration": "production",
|
||||||
|
"dependsOn": Array [
|
||||||
|
"build",
|
||||||
|
],
|
||||||
"executor": "@nrwl/angular:webpack-server",
|
"executor": "@nrwl/angular:webpack-server",
|
||||||
"options": Object {
|
"options": Object {
|
||||||
"customWebpackConfig": Object {
|
"customWebpackConfig": Object {
|
||||||
|
|||||||
@ -170,6 +170,9 @@ Object {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production",
|
"defaultConfiguration": "production",
|
||||||
|
"dependsOn": Array [
|
||||||
|
"build",
|
||||||
|
],
|
||||||
"executor": "@nrwl/angular:webpack-server",
|
"executor": "@nrwl/angular:webpack-server",
|
||||||
"options": Object {
|
"options": Object {
|
||||||
"customWebpackConfig": Object {
|
"customWebpackConfig": Object {
|
||||||
|
|||||||
@ -13,6 +13,9 @@ Object {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production",
|
"defaultConfiguration": "production",
|
||||||
|
"dependsOn": Array [
|
||||||
|
"build",
|
||||||
|
],
|
||||||
"executor": "@angular-devkit/build-angular:server",
|
"executor": "@angular-devkit/build-angular:server",
|
||||||
"options": Object {
|
"options": Object {
|
||||||
"main": "apps/app1/server.ts",
|
"main": "apps/app1/server.ts",
|
||||||
@ -104,6 +107,9 @@ Object {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "production",
|
"defaultConfiguration": "production",
|
||||||
|
"dependsOn": Array [
|
||||||
|
"build",
|
||||||
|
],
|
||||||
"executor": "@angular-devkit/build-angular:server",
|
"executor": "@angular-devkit/build-angular:server",
|
||||||
"options": Object {
|
"options": Object {
|
||||||
"main": "apps/app1/server.ts",
|
"main": "apps/app1/server.ts",
|
||||||
|
|||||||
@ -15,6 +15,7 @@ export function updateProjectConfig(tree: Tree, schema: Schema) {
|
|||||||
projectConfig.targets.build.configurations?.production?.fileReplacements;
|
projectConfig.targets.build.configurations?.production?.fileReplacements;
|
||||||
|
|
||||||
projectConfig.targets.server = {
|
projectConfig.targets.server = {
|
||||||
|
dependsOn: ['build'],
|
||||||
executor: '@angular-devkit/build-angular:server',
|
executor: '@angular-devkit/build-angular:server',
|
||||||
options: {
|
options: {
|
||||||
outputPath: `dist/${projectConfig.root}/server`,
|
outputPath: `dist/${projectConfig.root}/server`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user