Skip to content

Commit

Permalink
change project example in order to add SSR with the command `ng add…
Browse files Browse the repository at this point in the history
… @nguniversal/express-engine --clientProject=example`. Thanks unversal team !

fix Terser error (see terser/terser#254). downgrade to 3.14.1 for yarn
fix lint errors
  • Loading branch information
wKoza committed Feb 3, 2019
1 parent 7db867f commit 5269d0d
Show file tree
Hide file tree
Showing 16 changed files with 14,959 additions and 84 deletions.
20 changes: 19 additions & 1 deletion example/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/example",
"outputPath": "dist/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -99,6 +99,24 @@
"**/node_modules/**"
]
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/server",
"main": "src/main.server.ts",
"tsConfig": "src/tsconfig.server.json"
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
}
}
}
}
},
Expand Down
Loading

0 comments on commit 5269d0d

Please sign in to comment.