webpack-unused

0.1.0 • Public • Published

webpack-unused

Check your frontend code for files/assets that are no longer used.

Uses the output of webpack --json to see which files are actually used in your bundle, and lists files which haven't been required.

Usage:

# install webpack-unused 
npm install -g webpack-unused
 
# run webpack using your normal webpack config etc 
# with the --json switch to output the stats.json, and pipe to webpack-unused 
# unused files in the cwd will be listed 
webpack --json | webpack-unused
 
# if your source code is in a directory, like src/ pass that as a flag: 
webpack --json | webpack-unused -s src

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-unused

Weekly Downloads

895

Version

0.1.0

License

ISC

Last publish

Collaborators

  • latentflip