Skip to content
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

UnoCSS hmr & Nuxt page dir #1771

Closed
sadeghbarati opened this issue Oct 18, 2022 · 0 comments
Closed

UnoCSS hmr & Nuxt page dir #1771

sadeghbarati opened this issue Oct 18, 2022 · 0 comments

Comments

@sadeghbarati
Copy link

sadeghbarati commented Oct 18, 2022

By default, UnoCSS will extract the utilities usage from files in your build pipeline with extension .jsx, .tsx, .vue, .md, .html, .svelte, .astro. And then generate the CSS on demand.

HMR works in Nuxt components directory, but in page dir UnoCSS only scans for utilities,

If I use a unique utility class that did not exist or was not used before, the style does not apply until reload the page

https://github.com/nuxt/movies

Rec.0003.mp4
@antfu antfu closed this as completed in 002b1ad Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant