Skip to content

Commit adbf2c8

Browse files
clydindgp1130
authored andcommitted
fix(@angular-devkit/build-angular): normalize long-form asset option output to relative path
The output option for the long-form of the assets build option should be a relative path based from the output path of the application. However, a rooted path was also considered relative to the output path. To avoid two different ways of representing the path throughout the build system. The output path is now normalized to a relative path at the beginning of the build process. (cherry picked from commit 4d8d489)
1 parent ff8a89c commit adbf2c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/utils/normalize-asset-patterns.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export function normalizeAssetPatterns(
6767
const output = path.relative(resolvedSourceRoot, path.resolve(workspaceRoot, input));
6868

6969
assetPattern = { glob, input, output };
70+
} else {
71+
assetPattern.output = path.join('.', assetPattern.output);
7072
}
7173

7274
if (assetPattern.output.startsWith('..')) {

0 commit comments

Comments
 (0)