Skip to content

Commit 861a695

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): resolve absolute outputPath properly
Closes #20935
1 parent 02bea8c commit 861a695

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
269269
compiler.hooks.done.tapPromise('angular-cli-stats', async (stats) => {
270270
const { stringifyStream } = await import('@discoveryjs/json-ext');
271271
const data = stats.toJson('verbose');
272-
const statsOutputPath = path.join(root, buildOptions.outputPath, 'stats.json');
272+
const statsOutputPath = path.resolve(root, buildOptions.outputPath, 'stats.json');
273273

274274
try {
275275
await fsPromises.mkdir(path.dirname(statsOutputPath), { recursive: true });

0 commit comments

Comments
 (0)