The espruino CLI will minify as if it's uploading direct to Espruino - whereas I guess you want just the module itself. The script wraps the code in (function(){...})() and then sends it to the google closure compiler - which makes a much better job of it than the CLI's esprima minifier.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - I'll check on how often the module's used :)
To minify the way I minify the modules, it's best to use the
minify.js
in https://github.com/espruino/EspruinoDocs - https://github.com/espruino/EspruinoDocs/blob/master/bin/minify.jsThe espruino CLI will minify as if it's uploading direct to Espruino - whereas I guess you want just the module itself. The script wraps the code in
(function(){...})()
and then sends it to the google closure compiler - which makes a much better job of it than the CLI's esprima minifier.