Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Conversation

@fengzilong
Copy link

@fengzilong fengzilong commented Jan 20, 2020

Repo: https://github.com/fengzilong/duplicate-dependencies-webpack-plugin

Pros:

  • fancy and more detailed report ( size / issuer ... )
    snapshot

  • rewritten mechanism, so no more extra fs calls

  • flexible, it exposes an internal hook named "result" like what html-webpack-plugin did, which will be more extendable

    const DuplicatePlugin = require( 'duplicate-dependencies-webpack-plugin' ) DuplicatePlugin.getHooks( compilation ).result .tap( 'duplicates-consumer', duplicates => { // do whatever you want with `duplicates`, format / report / write it to disk } )
@fengzilong fengzilong marked this pull request as ready for review January 20, 2020 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant