Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 521 Bytes

File metadata and controls

24 lines (15 loc) · 521 Bytes

hydrate Addon

Re-hydrates CSS styles generated on the server. On the server add nano-css id to your stylesheet.

html += `<style id="nano-css">${nano.raw}</style>`;

And when creating nano-css instance provide that style sheet in configuration.

const nano = create({
    sh: typeof document === 'object' ? document.getElementById('nano-css') : null
});

That's it!

Installation

Simply install hydrate addon.

Read more about the Addon Installation.