Skip to content

Commit

Permalink
Prerender the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Feb 14, 2020
1 parent 6e1c463 commit 8d6a2e9
Show file tree
Hide file tree
Showing 13 changed files with 2,529 additions and 167 deletions.
53 changes: 51 additions & 2 deletions angular.json
Expand Up @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/ngx-flamegraph-sample",
"outputPath": "dist/ngx-flamegraph-sample/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -120,7 +120,56 @@
},
"deploy": {
"builder": "@angular/fire:deploy",
"options": {}
"options": {
"buildTarget": "ngx-flamegraph-sample:prerender:production"
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/ngx-flamegraph-sample/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"sourceMap": false,
"optimization": true
}
}
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "ngx-flamegraph-sample:build",
"serverTarget": "ngx-flamegraph-sample:server"
},
"configurations": {
"production": {
"browserTarget": "ngx-flamegraph-sample:build:production",
"serverTarget": "ngx-flamegraph-sample:server:production"
}
}
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "ngx-flamegraph-sample:build:production",
"serverTarget": "ngx-flamegraph-sample:server:production",
"routes": [
"/"
]
},
"configurations": {
"production": {}
}
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion firebase.json
Expand Up @@ -2,7 +2,7 @@
"hosting": [
{
"target": "ngx-flamegraph-sample",
"public": "dist/ngx-flamegraph-sample",
"public": "dist/ngx-flamegraph-sample/browser",
"ignore": [
"firebase.json",
"**/.*",
Expand Down

0 comments on commit 8d6a2e9

Please sign in to comment.