Skip to content

Commit 8db9c4d

Browse files
committed
fix(additional-assets): adds missing method
When using the plugin with `extract: true` config option along `compression-webpack-plugin`, `webpack.cache.PackFileCacheStrategy` crashes. This fixes the issue by defining the expected method.
1 parent d216557 commit 8db9c4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/plugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ class SVGSpritePlugin {
168168

169169
compilation.assets[`${this.filenamePrefix}${filename}`] = {
170170
source() { return content; },
171-
size() { return content.length; }
171+
size() { return content.length; },
172+
updateHash(bulkUpdateDecorator) { bulkUpdateDecorator.update(content); }
172173
};
173174
});
174175
});

0 commit comments

Comments
 (0)