diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index c050e894e784..2508c545576b 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -432,7 +432,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { entry: entryPoints, output: { path: path.resolve(root, buildOptions.outputPath), - publicPath: buildOptions.deployUrl, + publicPath: buildOptions.deployUrl ?? '', filename: ({ chunk }) => { if (chunk?.name === 'polyfills-es5') { return `polyfills-es5${hashFormat.chunk}.js`;