Skip to content

Commit dcbc4b3

Browse files
clydinfilipesilva
authored andcommitted
fix(@angular/cli): account for project root in asset output path
1 parent 7d0bd99 commit dcbc4b3

File tree

1 file changed

+1
-1
lines changed
  • packages/@angular/cli/models/webpack-configs

1 file changed

+1
-1
lines changed

packages/@angular/cli/models/webpack-configs/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
9292
// Prevent asset configurations from writing outside of the output path, except if the user
9393
// specify a configuration flag.
9494
// Also prevent writing outside the project path. That is not overridable.
95-
const absoluteOutputPath = path.resolve(buildOptions.outputPath);
95+
const absoluteOutputPath = path.resolve(projectRoot, buildOptions.outputPath);
9696
const absoluteAssetOutput = path.resolve(absoluteOutputPath, asset.output);
9797
const outputRelativeOutput = path.relative(absoluteOutputPath, absoluteAssetOutput);
9898

0 commit comments

Comments
 (0)