-
Notifications
You must be signed in to change notification settings - Fork 46
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
Working with unocss #2173
Comments
Hi @darkyelox, thanks for reporting this issue! Could you please confirm:
|
Yes the wrapper is in that directory, the file is named like that and is recognized by the extension, I had the latest version until I read your comment and it had a newer version Maybe a working example with unocss and previewjs will be of help to me to investigate my particular case. |
Thanks for the additional info. Yes, you'd need the PostCSS and UnoCSS config files to be next to the Definitely a good idea to add an example with UnoCSS, I'll try and get that working. |
Is your feature request related to a problem? Please describe.
I have tried to make this work with unocss and solidjs, the solid components are shown but no styles applied, my attempt was to use postcss plugin with unocss and created a postcss.config.js file:
wrapper.tsx file
postcss.config.js file
style.css file:
@unocss;
I have noticed that somehow the plugin gets slow and if I play with the style.css file it may break and I have to close VSCode, kill all node processes and then start VSCode again.
Describe the solution you'd like
A guide of how to use unocss in all frameworks supported by previewjs.
Describe alternatives you've considered
For now I created a preview component for each component (in fact this is the one I want to preview in Previewjs) and created a global Preview component that import the preview file of each component dynamically ( I use a CLI command for select the preview file to import) and run a Vite server locally.
Additional context
I use Visual Studio code plugin.
The text was updated successfully, but these errors were encountered: