Skip to content

Commit

Permalink
feat(@angular-devkit/build-angular): support ~ path for `dev-server…
Browse files Browse the repository at this point in the history
…` ssl
  • Loading branch information
titan-ron committed May 1, 2024
1 parent df82da5 commit 19323ca
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import { BuilderContext, targetFromTargetString } from '@angular-devkit/architect';
import os from 'node:os';
import path from 'node:path';
import { normalizeCacheOptions } from '../../utils/normalize-cache';
import { normalizeOptimization } from '../../utils/normalize-optimization';
Expand Down Expand Up @@ -105,8 +106,8 @@ export async function normalizeOptions(
servePath,
publicHost,
ssl,
sslCert,
sslKey,
...(sslCert ? { sslCert: sslCert.replace(/^~/, os.homedir()) } : {}),
...(sslKey ? { sslKey: sslKey.replace(/^~/, os.homedir()) } : {}),
forceEsbuild,
// Prebundling defaults to true but requires caching to function
prebundle: cacheOptions.enabled && !optimization.scripts && (prebundle ?? true),
Expand Down

0 comments on commit 19323ca

Please sign in to comment.