* Constructs an instance of `AngularServerApp`. * * @param options Optional configuration options for the server application.
(private readonly options: Readonly<AngularServerAppOptions> = {})
| 112 | * @param options Optional configuration options for the server application. |
| 113 | */ |
| 114 | constructor(private readonly options: Readonly<AngularServerAppOptions> = {}) { |
| 115 | this.allowStaticRouteRender = this.options.allowStaticRouteRender ?? false; |
| 116 | this.hooks = options.hooks ?? new Hooks(); |
| 117 | |
| 118 | if (this.manifest.inlineCriticalCss) { |
| 119 | this.inlineCriticalCssProcessor = new InlineCriticalCssProcessor((path: string) => { |
| 120 | const fileName = path.split('/').pop() ?? path; |
| 121 | |
| 122 | return this.assets.getServerAsset(fileName).text(); |
| 123 | }); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * The manifest associated with this server application. |
nothing calls this directly
no test coverage detected