4 ms·
looks great. would be even better when it comes with automatic compression for bigger scripts.
by hazelnut 16y ago
looks great. would be even better when it comes with automatic compression for bigger scripts.
- substack 16y agoAutomatic compression isn't in there yet but you can compress the bundles using the "filter" option, which just takes a function that transforms the bundled source.
- focusaurus 16y agoEveryone always asks this, but compression is most cleanly handled by your web server with Content-encoding: gzip, no? Why do we need to compress and minify markup and script files one at a time by hand?
- substack 16y agoJavascript compressors can intelligently remove blocks that general purpose stream compressors can't, like dead code or comments. Also because they understand the AST they can move code around to a limited extent to make the final output shorter.