Skip to content

Commit 0b7a101

Browse files
clydinalan-agius4
authored andcommitted
refactor(@angular-devkit/build-angular): remove unneeded relative URL modification for public path
Only the injected index HTML file references and component stylesheets require the modification of relative URLs with a public path when specified. Other usages are already resolved relative to their containing file location with the `application` builder.
1 parent fc5a2af commit 0b7a101

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

packages/angular_devkit/build_angular/src/tools/esbuild/application-code-bundle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ function getEsBuildCommonOptions(options: NormalizedApplicationBuildOptions): Bu
388388
},
389389
loader: loaderExtensions,
390390
footer,
391-
publicPath: options.publicPath,
392391
};
393392
}
394393

packages/angular_devkit/build_angular/src/tools/esbuild/global-styles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export function createGlobalStylesBundleOptions(
2929
tailwindConfiguration,
3030
postcssConfiguration,
3131
cacheOptions,
32-
publicPath,
3332
} = options;
3433

3534
const namespace = 'angular:styles/global';
@@ -67,7 +66,6 @@ export function createGlobalStylesBundleOptions(
6766
tailwindConfiguration,
6867
postcssConfiguration,
6968
cacheOptions,
70-
publicPath,
7169
},
7270
loadCache,
7371
);

0 commit comments

Comments
 (0)