TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Babili: An ES6+ aware minifier based on Babel

94 pointsby hzooover 8 years ago

7 comments

yladizover 8 years ago
It may just be a paranoid delusion, but I&#x27;m worried that Babel is trying to become a more encompassing build tool ala Grunt&#x2F;Gulp instead of just transpiling. I love Babel and plan to continue to use it in the future for my front-end development, but the &quot;doing it all ourselves&quot; is a little bit much.<p>I would much rather see a recommendation and efforts around Uglify than a brand new minimization tool, and I would rather see work on acorn[1] rather than around a new parser[2], because these things fragment the community rather than bring them together.<p>Edit: Yes, Uglify has taken a long time to get work done on ES2015, but note that the spec has changed a lot over that time. It does feel like they are dragging their feet or not getting much done in that front, but all the more reason to put one of the Babel devs who may have more free time on the project to get more things going.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;marijnh&#x2F;acorn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;marijnh&#x2F;acorn</a><p>2: <a href="https:&#x2F;&#x2F;github.com&#x2F;babel&#x2F;babylon" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;babel&#x2F;babylon</a>
评论 #12395576 未加载
评论 #12394027 未加载
评论 #12393899 未加载
评论 #12393909 未加载
okketover 8 years ago
There is currently a discussion going on about changing the name back to babel-minify (you can vote)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;babel&#x2F;babili&#x2F;issues&#x2F;124" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;babel&#x2F;babili&#x2F;issues&#x2F;124</a>
anotherthingover 8 years ago
Competition is great. The more minifiers the better.<p>At a usability level, babili has a 33M install footprint and must be installed locally in the directory in which you intend to use it.<p>uglify-js can be installed globally and has a 1.9M install size.<p>And I&#x27;ve never understood how to configure babel&#x27;s preset and plugin files. Why is it necessary for a minifier to do this? Surely this can be greatly simplified.
评论 #12394525 未加载
评论 #12394306 未加载
评论 #12397912 未加载
评论 #12394640 未加载
killercupover 8 years ago
Interesting, but the only &#x27;Pro&#x27; I can actually see here is ES6 support when you were previously using uglify. I think using Closure Compiler on TypeScript output with the right JSDoc comments can yield much better results as there is much more information the minifier can work with.
评论 #12395610 未加载
评论 #12395611 未加载
k__over 8 years ago
Can this yield smaller bundles?
评论 #12394251 未加载
anonymousguyover 8 years ago
You don&#x27;t need Babel or a build process to minify ES6. Pretty Diff has supported this for years <a href="http:&#x2F;&#x2F;prettydiff.com&#x2F;?m=minify" rel="nofollow">http:&#x2F;&#x2F;prettydiff.com&#x2F;?m=minify</a>
评论 #12394252 未加载
bshimminover 8 years ago
Ah, are they going to make a minifier based on Bublé (<a href="https:&#x2F;&#x2F;buble.surge.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;buble.surge.sh&#x2F;</a>), too? Perhaps they could call it Bublili.
评论 #12398388 未加载