3 ms·
We've been using Closure to minify our code for years. It's extremely slow (I think it takes a minute or so on our codebase), so we only do it for deploys. It
by lobster_johnson 11y ago
We've been using Closure to minify our code for years. It's extremely slow (I think it takes a minute or so on our codebase), so we only do it for deploys.
It produces smaller code than minifiers such as Uglify, even though we're not using its coding conventions (Closure is designed to optimize code written in a certain way that allows it to eliminate dead code paths).
- rafael-rinaldi 11y agoIf I was you I would give Rollup a try: http://rollupjs.org http://rollupjs.org I used to minify with Closure as well (through r.js) and it would take forever.
- lobster_johnson 11y agoWe're using Browserify — can you use Rollup with it? Closure's slowness isn't really a problem for us since we only use it for deploys, not while deveoping. Edit: I see, Rollup is a competitor to Browserify. Looks nice, if somewhat immature. Maybe we'll be able to use it.