Webpack: add DeadCodePlugin to detect unused files

This commit is contained in:
Alex Gleason 2022-04-14 15:22:37 -05:00
parent c2278aa679
commit 4adb42e426
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 9 additions and 0 deletions

View file

@ -191,6 +191,7 @@
"webpack-assets-manifest": "^5.0.6", "webpack-assets-manifest": "^5.0.6",
"webpack-bundle-analyzer": "^4.4.2", "webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^4.8.0", "webpack-cli": "^4.8.0",
"webpack-deadcode-plugin": "^0.1.16",
"webpack-merge": "^5.8.0", "webpack-merge": "^5.8.0",
"wicg-inert": "^3.1.1" "wicg-inert": "^3.1.1"
}, },

Binary file not shown.

View file

@ -10786,6 +10786,14 @@ webpack-cli@^4.8.0:
v8-compile-cache "^2.2.0" v8-compile-cache "^2.2.0"
webpack-merge "^5.7.3" webpack-merge "^5.7.3"
webpack-deadcode-plugin@^0.1.16:
version "0.1.16"
resolved "https://registry.yarnpkg.com/webpack-deadcode-plugin/-/webpack-deadcode-plugin-0.1.16.tgz#f58ec7bd908325247396438a50afc209bfd01bdd"
integrity sha512-T3oRlzftN4jU8Wm8rjx9mzYC8zr4CND5kNgh6EBJyhWy68F5kZ334EjdBjOKDEpUHuybBuxi/SviVUFsP0gx4g==
dependencies:
chalk "^3.0.0"
fast-glob "^3.1.1"
webpack-dev-middleware@^5.1.0: webpack-dev-middleware@^5.1.0:
version "5.1.0" version "5.1.0"
resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.1.0.tgz#90a645b077e85f661c5bb967dc32adc3eceb5cfd" resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.1.0.tgz#90a645b077e85f661c5bb967dc32adc3eceb5cfd"