Skip to content

Commit

Permalink
add support for chunkhash
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Dec 6, 2018
1 parent dbf9aa5 commit 72d2706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class SizePlugin {
out += `(${escapeRegExp(before)})`;
replace[count++] = false;
}
if (type==='hash' || type==='contenthash') {
if (type==='hash' || type==='contenthash' || type==='chunkhash') {
const len = Math.round(size) || hashLength;
out += `([0-9a-zA-Z]{${len}})`;
replace[count++] = true;
Expand Down

0 comments on commit 72d2706

Please sign in to comment.