grunt-amdcheck - Uses AST to find and remove unused dependencies in AMD modules.

added by bpwndaddy
6/8/2015 3:32:52 PM

1 Kicks, 198 Views

When an AMD based project grows, number of it's js files grows too and some dependencies of the modules that had been used before, can become useless later. The AMD module loader (e.g. requirejs) loads those useless dependencies from network which can increase initial page load time. This grunt plugin can detect and remove those useless dependencies without modifying source files.