FormidableLabs / inspectpack

An inspection tool for Webpack frontend JavaScript bundles.
MIT License
592 stars 20 forks source link

Add `emitHandler` option to `DuplicatesPlugin` to allow customized output #97

Closed ryan-roemer closed 5 years ago

ryan-roemer commented 5 years ago

Allows us to actually get output on next / builds that totally wrap webpack:

      new DuplicatesPlugin({
        verbose: true,
        emitHandler: (report) => {
          console.log(report);
        }
      })

/cc @tptee

codecov[bot] commented 5 years ago

Codecov Report

Merging #97 into master will decrease coverage by 0.75%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
- Coverage   90.37%   89.62%   -0.76%     
==========================================
  Files          14       14              
  Lines         665      665              
  Branches      105      107       +2     
==========================================
- Hits          601      596       -5     
- Misses         38       39       +1     
- Partials       26       30       +4
Impacted Files Coverage Δ
src/plugin/duplicates.ts 84.92% <50%> (-2.08%) :arrow_down:
src/lib/util/files.ts 80% <0%> (-11.31%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ebe5056...a83ed2d. Read the comment docs.

codecov[bot] commented 5 years ago

Codecov Report

Merging #97 into master will decrease coverage by 0.28%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
- Coverage   90.37%   90.09%   -0.29%     
==========================================
  Files          14       14              
  Lines         665      666       +1     
  Branches      105      107       +2     
==========================================
- Hits          601      600       -1     
  Misses         38       38              
- Partials       26       28       +2
Impacted Files Coverage Δ
src/plugin/duplicates.ts 87.4% <100%> (+0.4%) :arrow_up:
src/lib/util/files.ts 80% <0%> (-11.31%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ebe5056...7e8ff13. Read the comment docs.

ryan-roemer commented 5 years ago

released in inspectpack@4.1.0