Skip to content

Commit

Permalink
forEach to forEachLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
dav-is committed Jan 9, 2019
1 parent 3e147e6 commit 9cb4225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Compiler.js
Expand Up @@ -312,8 +312,9 @@ class Compiler extends Tapable {
const emitFiles = err => {
if (err) return callback(err);

asyncLib.forEach(
asyncLib.forEachLimit(
compilation.assets,
15,
(source, file, callback) => {
let targetFile = file;
const queryStringIdx = targetFile.indexOf("?");
Expand Down

0 comments on commit 9cb4225

Please sign in to comment.