-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
undocumentedNot yet written into official documentationNot yet written into official documentation
Description
Description
The HTML generated by Master CSS SSR:
import { renderHTML } from '@master/css'
...
const html = renderHTML(html);
res.set('Content-Type', 'text/html');
res.send(Buffer.from(html));<html>
<head>
<style title="master">
.text\:center { text-align: center }
.font\:16\:hover:hover { font-size: 1rem }
</style>
</head>
<body>
<h1 class="text:center font:16:hover"></h1>
</body>
</html>Now with minifying:
import { renderHTML, minify } from '@master/css'
...
const html = minify(renderHTML(html));
res.set('Content-Type', 'text/html');
res.send(Buffer.from(html));<html>
<head>
<style title="master">
.a { text-align: center }
.b:hover { font-size: 1rem }
</style>
</head>
<body>
<h1 class="a b"></h1>
</body>
</html>itsezc and oskar-gmerek
Metadata
Metadata
Assignees
Labels
undocumentedNot yet written into official documentationNot yet written into official documentation