I just realized - Why the can't the WebIDE handle file:// urls? This would be the perfect solution to this
I can do file:///c:/module.js in URL bar of Chrome, press enter, and it loads the file. But for some reason, if I do require("file:///c:/module.js").connect(...) in the right side of the WebIDE, it complains that it can't find the module. Since chrome can handle those URLs, I suspect (hope?) it wouldn't be that hard to get the WebIDE to support that. It would certainly make life much easier for people developing modules (which right now pretty much requires installing a local webserver)
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 just realized - Why the can't the WebIDE handle file:// urls? This would be the perfect solution to this
I can do file:///c:/module.js in URL bar of Chrome, press enter, and it loads the file. But for some reason, if I do require("file:///c:/module.js").connect(...) in the right side of the WebIDE, it complains that it can't find the module. Since chrome can handle those URLs, I suspect (hope?) it wouldn't be that hard to get the WebIDE to support that. It would certainly make life much easier for people developing modules (which right now pretty much requires installing a local webserver)