fix edgecase without any hash used

This commit is contained in:
Tobias Koppers 2020-08-19 11:37:17 +02:00
parent e3fcabd6f6
commit b13fe97801
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class RealContentHashPlugin {
}
}
}
if (hashToAssets.size === 0) return;
const hashRegExp = new RegExp(
Array.from(hashToAssets.keys(), quoteMeta).join("|"),
"g"