browserify-middleware
browserify-middleware copied to clipboard
Use uglifyify
We should try using https://npmjs.org/package/uglifyify by @hughsk whenever minify is true
for slightly better compression (sometimes).
How does closure compiler compare?
closure is broken: https://github.com/ForbesLindesay/umd/pull/14 UglifyJS doesn't break your code.
My pull request regarding supporting async hooks is very generic though. I hope you'll take a look. If that pull gets accepted I would also add some more hooks. For example to be able to log out when the process has completed and has been cached.
OK, this is un-related to that. This is talking about using uglifyify as a transform by default. Roughly equivalent to adding:
browserify.settings.production('transform', [require('uglifyify')]);
by default.