Skip to content

Commit

Permalink
fix(angular): make server build depend on browser build
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 29, 2022
1 parent 5999dee commit f1cd947
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Expand Up @@ -166,6 +166,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@nrwl/angular:webpack-server",
"options": Object {
"customWebpackConfig": Object {
Expand Down
Expand Up @@ -170,6 +170,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@nrwl/angular:webpack-server",
"options": Object {
"customWebpackConfig": Object {
Expand Down
Expand Up @@ -13,6 +13,9 @@ Object {
},
},
"defaultConfiguration": "production",
"dependsOn": Array [
"build",
],
"executor": "@angular-devkit/build-angular:server",
"options": Object {
"main": "apps/app1/server.ts",
Expand Down
Expand Up @@ -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`,
Expand Down

0 comments on commit f1cd947

Please sign in to comment.