Skip to content

tellnes/prundupify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prundupify

Version npmnpm DownloadsBuild StatusCoverage StatusDependenciesTips

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

About

♻️ Removes duplicate files in browserify completly

Resources

License

Stars

Watchers

Forks

Packages

No packages published