Skip to content

Commit

Permalink
fix(additional-assets): adds missing method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Toolo committed Jan 15, 2021
1 parent d216557 commit 8db9c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ class SVGSpritePlugin {

compilation.assets[`${this.filenamePrefix}${filename}`] = {
source() { return content; },
size() { return content.length; }
size() { return content.length; },
updateHash(bulkUpdateDecorator) { bulkUpdateDecorator.update(content); }
};
});
});
Expand Down

0 comments on commit 8db9c4d

Please sign in to comment.