prundupify
prundupify
is a browserify plugin which removes
duplicate files in the build completly.
Warning: This might break your code if you are relying on the module cache to be different for different files which has exatcly the same source. Please see the example below.
Example
a.js:
moduleexports = Math
b.js:
moduleexports = Math
entry.js:
console
$ browserify entry.js | nodefalse$ browserify entry.js -p prundupify | nodetrue
Install
npm install -S prundupify
License
MIT