We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63eaaee commit e577c07Copy full SHA for e577c07
packages/@angular/cli/plugins/glob-copy-webpack-plugin.ts
@@ -43,9 +43,9 @@ export class GlobCopyWebpackPlugin {
43
// flatten results
44
.then(globResults => [].concat.apply([], globResults))
45
// add each file to compilation assets
46
- .then(relPaths => relPaths.forEach((relPath: string) => addAsset(relPath)))
+ .then((relPaths: string[]) => Promise.all(relPaths.map((relPath: string) => addAsset(relPath))))
47
.catch((err) => compilation.errors.push(err))
48
- .then(cb);
+ .then(() => cb());
49
});
50
}
51
0 commit comments