ShrimpingIt / cockle

Utilities and examples for the use of an ESP8266 - scroll down for README
http://shrimping.it/project/cockle
GNU Affero General Public License v3.0
6 stars 2 forks source link

Document the preparation of Gzipped, inlined Web Bundles for ReplServer #3

Open cefn opened 7 years ago

cefn commented 7 years ago

Chris and Josh working on Edublocks were curious about embedding their drag-and-drop web client into the Cockle. Promised to raise an issue regarding the preparation of html.gz web resources to be served by the low-headroom Gunzipping server at https://github.com/ShrimpingIt/cockle/blob/master/replserver/boot.py

The approach was originally discussed at https://github.com/micropython/micropython/issues/2299#issuecomment-264750573 but invite ongoing issues here in the cockle repo.

For reference, I created the webrepl inlined gzipped file using npm's inliner package, with the result put through gzip, from within the latest .html file checked out from the webrepl repo, like...

inliner webrepl.html | gzip > webrepl-inlined.html.gz

cefn commented 7 years ago

@JoshuaLowe1002 and @cjdell is this enough about the process of gzipping to be going on with?

cjdell commented 7 years ago

Thanks @cefn. I stumbled upon that discussion last night and learned a lot. I'm working on bringing the size of EduBlocks down to the smallest possible. Will let you know how it goes! :-)