mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
fix(@angular-devkit/build-angular): use absolute watch paths for postcss dependency messages
Postcss's directory dependency message can use a glob pattern to reflect that multiple files within a given directory should be watched. When calculated the complete file set, the paths must be absolute to ensure that the watch system correctly invalidates the stylesheet being processed.
This commit is contained in:
parent
6a0c2209d4
commit
376e3462d3
@ -260,7 +260,10 @@ async function compileString(
|
||||
typeof resultMessage['glob'] === 'string'
|
||||
) {
|
||||
loadResult.watchFiles ??= [];
|
||||
const dependencies = await glob(resultMessage['glob'], { cwd: resultMessage['dir'] });
|
||||
const dependencies = await glob(resultMessage['glob'], {
|
||||
absolute: true,
|
||||
cwd: resultMessage['dir'],
|
||||
});
|
||||
loadResult.watchFiles.push(...dependencies);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user