Skip to content

Commit 7f572db

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

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
@@ -90,7 +90,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
9090
// Prevent asset configurations from writing outside of the output path, except if the user
9191
// specify a configuration flag.
9292
// Also prevent writing outside the project path. That is not overridable.
93-
const absoluteOutputPath = path.resolve(buildOptions.outputPath);
93+
const absoluteOutputPath = path.resolve(projectRoot, buildOptions.outputPath);
9494
const absoluteAssetOutput = path.resolve(absoluteOutputPath, asset.output);
9595
const outputRelativeOutput = path.relative(absoluteOutputPath, absoluteAssetOutput);
9696

0 commit comments

Comments
 (0)