I'm writing versions of modules AT, ESP8266 amd MQTT which can be minified in closure's advanced mode (side-question: when I back-contribute these, looks like I should also contribute the minified versions as by default they will be minified using simple optimisations)
However, no matter what options I select in WebIDE minification, it won't use my local minified versions when I specify
require('ESP8266_MM').connect()
However, when I specify
require('ESP8266_MM.min').connect()
it DOES use the minified versions so they are there and working.
In both cases it works as expected, and there are no (visible) errors. The modules are stored locally in the modules directory of the project location
When I run a test using a very simple pair of examples, it does correctly use the minified version without being prompted.
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.
I'm writing versions of modules AT, ESP8266 amd MQTT which can be minified in closure's advanced mode (side-question: when I back-contribute these, looks like I should also contribute the minified versions as by default they will be minified using simple optimisations)
However, no matter what options I select in WebIDE minification, it won't use my local minified versions when I specify
However, when I specify
it DOES use the minified versions so they are there and working.
In both cases it works as expected, and there are no (visible) errors. The modules are stored locally in the modules directory of the project location
When I run a test using a very simple pair of examples, it does correctly use the minified version without being prompted.