|
| 1 | +# tinyify |
| 2 | + |
| 3 | +a browserify plugin that runs various optimizations, so you don't have to install them all manually. |
| 4 | + |
| 5 | +[![npm][npm-image]][npm-url] |
| 6 | +[![travis][travis-image]][travis-url] |
| 7 | +[![standard][standard-image]][standard-url] |
| 8 | + |
| 9 | +[npm-image]: https://img.shields.io/npm/v/browserify-tiny.svg?style=flat-square |
| 10 | +[npm-url]: https://www.npmjs.com/package/browserify-tiny |
| 11 | +[travis-image]: https://img.shields.io/travis/goto-bus-stop/browserify-tiny.svg?style=flat-square |
| 12 | +[travis-url]: https://travis-ci.org/goto-bus-stop/browserify-tiny |
| 13 | +[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square |
| 14 | +[standard-url]: http://npm.im/standard |
| 15 | + |
| 16 | +```bash |
| 17 | +npm install --saved-dev tinyify |
| 18 | + |
| 19 | +browserify -p tinyify app.js |
| 20 | +``` |
| 21 | + |
| 22 | +## Included |
| 23 | + |
| 24 | + - [unassertify][] - Remove `assert()` calls |
| 25 | + - [envify][] - Replace environment variables—by default, replaces `NODE_ENV` with `"production"` |
| 26 | + - [uglifyify][] - Remove dead code from modules |
| 27 | + - [common-shakeify][] - Remove unused exports from modules |
| 28 | + - [browser-pack-flat][] - Output a "flat" bundle, with all modules in a single scope |
| 29 | + - [minify-stream][] - Uglify the final bundle |
| 30 | + |
| 31 | +## License |
| 32 | + |
| 33 | +[Apache-2.0](./LICENSE.md) |
| 34 | + |
| 35 | +[unassertify]: https://github.com/unassert-js/unassertify |
| 36 | +[envify]: https://github.com/hughsk/envify |
| 37 | +[uglifyify]: https://github.com/hughsk/uglifyify |
| 38 | +[common-shakeify]: https://github.com/goto-bus-stop/common-shakeify |
| 39 | +[browser-pack-flat]: https://github.com/goto-bus-stop/browser-pack-flat |
| 40 | +[minify-stream]: https://github.com/goto-bus-stop/minify-stream |
0 commit comments