Find unused files in a Jspm project
npm install -g jspm-unused
jspm-unused app/app.js
This will print unused files on the console.
You can set the --quiet option to suppress superfluous output
jspm-unused --quiet app/app.js
As there is one file per line, one can feed the output to another command. For example, to remove unused files
rm `jspm-unused --quiet app/app.js`
- webpack-unused - Find unused files in a Webpack project