Skip to content

Commit

Permalink
feat: Angular Universal
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelwellyngton committed May 28, 2024
1 parent b889597 commit e243034
Show file tree
Hide file tree
Showing 8 changed files with 1,419 additions and 169 deletions.
56 changes: 55 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"build": {
"builder": "@ngx-env/builder:browser",
"options": {
"outputPath": "dist/pavaozinho",
"outputPath": "dist/pavaozinho/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
Expand Down Expand Up @@ -118,6 +118,60 @@
],
"scripts": []
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/pavaozinho/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"outputHashing": "media"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"sourceMap": true,
"extractLicenses": false,
"vendorChunk": true
}
},
"defaultConfiguration": "production"
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"configurations": {
"development": {
"browserTarget": "pavaozinho:build:development",
"serverTarget": "pavaozinho:server:development"
},
"production": {
"browserTarget": "pavaozinho:build:production",
"serverTarget": "pavaozinho:server:production"
}
},
"defaultConfiguration": "development"
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"options": {
"routes": [
"/"
]
},
"configurations": {
"production": {
"browserTarget": "pavaozinho:build:production",
"serverTarget": "pavaozinho:server:production"
},
"development": {
"browserTarget": "pavaozinho:build:development",
"serverTarget": "pavaozinho:server:development"
}
},
"defaultConfiguration": "production"
}
}
}
Expand Down
Loading

0 comments on commit e243034

Please sign in to comment.