c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minify the rendered HTML.

stefanjudis opened this issue Β· comments

Hey folks! πŸ‘‹

I just came along and this looks great. Especially when I discovered that x0 support --static. One question though. By simply building the example I noticed the HTML is not minified. Is this something to come or how should I approach this?

<!DOCTYPE html>
<meta charset='utf-8'>

<h1>Hello</h1>

But great job! 10min playing around with it was fun already.

Thanks for the question! I think this would be a great feature to add to the current static renderer. The React portion of the site should be minified by default, but the rest of the HTML is coming from the template here: https://github.com/c8r/x0/blob/master/lib/static/index.js#L19-L30

This is now supported in the latest version of x0, 3.0.4.