MQuy / webpack-deadcode-plugin

Webpack plugin to detect unused files and unused exports in used files
MIT License
348 stars 16 forks source link

feat: support export result to json and support not showing logs #58

Closed hawtim closed 2 years ago

hawtim commented 2 years ago

@MQuy hi, here is the change for the export result to json files, please help to review this. thx.

There are two main things inside:

  1. Add a new option called exportJSON, support boolean and path.
  2. Allow set log to none for not showing message.

Beside, I found that the samples/webpack.config.js can not load the local package, so I change the path to '../src/index'

Close https://github.com/MQuy/webpack-deadcode-plugin/issues/56

MQuy commented 2 years ago

thanks @hawtim for the pull request 🚀