Skip to content

Feature request: A more useful compilation mode #948

@UltraCakeBakery

Description

@UltraCakeBakery

Now that unocss can do transforms, I am wondering how easy it would be to add support for a more useful compilation mode compared to the one from windicss. One where you can also manually pick what elements get their classes and attributes combined into one.

EXAMPLE:

Before:

<!-- note the additional `compile` class at the beginning -->
<div class="compile bg-red-500 text-xl font-bold border border-gray-200 dark:hover:bg-green-500 transform scale-5">

After:

<div class="uno-2xjw9">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions