butternut
butternut copied to clipboard
The fast, future-friendly minifier
Hello! Great work with butternut! I was trying to add sourcemaps support to `butternut-webpack-plugin` (https://github.com/Apercu/butternut-webpack-plugin/pull/2) but I dont know how to pass a sourcemap. Maybe something like what babel does...
Will butternut get minifier options that can be optouted? i.e. preserve comments, preserve newlines and so on
> The compression is better than Babili and Closure Compiler Unfortunately this claim is factually not true today, not by a long shot in fact: https://github.com/leeoniya/domvm/blob/2.x-dev/dist/dev/domvm.dev.min.js GCC yields 15.6 KB....
Input: ```js function foo() { a; 5; 6; } ``` expected: ```js function foo() {} ```
Code might refer to `fn.name`. Uglify, Closure and Babili all mangle function names by default, so *maybe* we should too. Either way we should certainly have the option to preserve...
```js // input if ( a ) { obj = {} } else { obj = null; } // ideal obj=a?{}:null // actual a?(obj={}):(obj=null) ``` Uglify and Closure both get...