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 c617c21 commit 849155cCopy full SHA for 849155c
packages/@angular/cli/plugins/glob-copy-webpack-plugin.ts
@@ -43,9 +43,10 @@ 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[]) =>
47
+ Promise.all(relPaths.map((relPath: string) => addAsset(relPath))))
48
.catch((err) => compilation.errors.push(err))
- .then(cb);
49
+ .then(() => cb());
50
});
51
}
52
0 commit comments