dedupe-string-plugin
Dedupe-String-Plugin is a plugin for webpack that is optimized to work with gzip and remove duplicate strings that the gzip compression algorithm is not going to be able to dedupe.
Before dedupe-string-plugin:
{React;// ... somewhere outside of the gzip sliding window (32KB)React;}
After dedupe-string-plugin:
{const e = 'div';React;// ... somewhere outside of the gzip sliding window (32KBReact;}
Webpack usage
var DedupeString = ;moduleexports =plugins:;