-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: A more useful compilation mode #948
Comments
Well, originally I was going to say this is out-of-scope since it would be a lot of caveats to do it right (in Windi it's only supported in CLI but not the Vite plugin). But with your proposal of adding the The word <script setup>
const styling = '::uno:: bg-red-500 text-xl font-bold border border-gray-200` // to be `uno-2xjw9`
</script>
<template>
<div :class="styling">
</template> I like this idea! |
Implemented at #950 |
@antfu that was implemented very quickly! Thank you for this! I have not gotten around to testing it yet. Will do in the near future. |
I didn't find a way to make it work with Attributify. Is there a way to do that? |
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:
After:
The text was updated successfully, but these errors were encountered: