4 ms·
This is cool! Do you think you could get Hugo to run in the browser this way so you could show live-previews in the browser without having to run Hugo locally?
by seanwilson 4y ago
This is cool! Do you think you could get Hugo to run in the browser this way so you could show live-previews in the browser without having to run Hugo locally?
- ricardbejarano 4y agoIt... should, i think? I'll try! Binary size is the main issue with Go WASM, the binary on this is 4MB, and it only does templating. TinyGo won't work because it doesn't have reflect (which I need for parsing arbitrary JSON). But I'll give it a spin. Thanks!
- drgo 4y agoNice Most recent release of Tinygo supports JSON decoding https://tinygo.org/docs/reference/lang-support/stdlib/ https://tinygo.org/docs/reference/lang-support/stdlib/