prundupify
v1.0.0
Published
Removes duplicate files in browserify completly
Downloads
52
Readme
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:
module.exports = Math.random()
b.js:
module.exports = Math.random()
entry.js:
console.log(require('./a') === require('./b'))
$ browserify entry.js | node
false
$ browserify entry.js -p prundupify | node
true
Install
npm install -S prundupify
License
MIT