Skip to content

Commit 70edb12

Browse files
Merge pull request #68 from scarletsky/master
Add minimization time
2 parents e078d5e + cffa65d commit 70edb12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ module.exports = class SpeedMeasurePlugin {
4848
return new WrappedPlugin(plugin, pluginName, this);
4949
});
5050

51+
if (config.optimization && config.optimization.minimizer) {
52+
config.optimization.minimizer = config.optimization.minimizer.map(plugin => {
53+
return new WrappedPlugin(plugin, plugin.constructor.name, this);
54+
});
55+
}
56+
5157
if (config.module && this.options.granularLoaderData) {
5258
config.module = prependLoader(config.module);
5359
}

0 commit comments

Comments
 (0)