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

chore(docs): add duplicate dependencies plugin #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant