This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dedupe-string-plugin

1.1.0 • Public • Published

dedupe-string-plugin

Build Status Known Vulnerabilities Greenkeeper badge

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:
function thing() {
  React.createElement('div');
  // ... somewhere outside of the gzip sliding window (32KB)
  React.createElement('div');
}
After dedupe-string-plugin:
function thing() {
  const e = 'div';
  React.createElement(e);
  // ... somewhere outside of the gzip sliding window (32KB
  React.createElement(e);
}
Webpack usage
var DedupeString = require('dedupe-string-plugin');
 
module.exports = {
  plugins: [
    new DedupeString()
  ]
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i dedupe-string-plugin

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

196 kB

Total Files

15

Last publish

Collaborators

  • markis