Packages
- 📖 Study the documentation
- 🧭 Explore the examples
- 📜 Read the changelog
Static Extraction
default
▸ default(markup
, options?
): string
Used for static HTML processing (usually to provide SSR support for your javascript-powered web apps)
- parse the markup and process element classes with the provided Twind instance
- update the class attributes if necessary
- inject a style element with the CSS as last element into the head
- return the HTML string with the final element classes
Minify CSS with @parcel/css:
You can provide your own Twind instance:
Parameters
Name | Type | Description |
---|---|---|
markup | string | HTML to process |
options | undefined | InlineOptions | Twind <any , any > | to customize the processing |
Returns
string
the resulting HTML