-
Notifications
You must be signed in to change notification settings - Fork 97
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
Atomizer plugin not working on a vite project #550
Comments
@maheshbansod thanks for the report. I found the same issues as you locally when testing and committed a fix to help. Note that building atomizer still requires a manual step as vite does not automatically re-run atomizer on file changes. I'm not sure why that is, I will have to dig into the vite docs to see if that is something that can be enabled or something our plugin will have to do. |
thanks for the response @redonkulus. |
Interesting idea, can you send me the code, I can test it out and see about including it in the plugin library. |
Added the code here: https://github.com/maheshbansod/atomizer-vite/blob/main/atomizerPlugin.ts |
@maheshbansod I tried your changes locally and they work well! Good job!. I've opened a PR to update the atomizer-plugin to incorporate these changes #553 |
awesome. thanks. |
actually can we put it behind a dev flag? |
Describe the bug A clear and concise description of what the bug is.
I've followed the instructions here: https://acss.io/integrations/vite.html.
but the classes I add in my
index.html
file aren't getting generated.The file
atomizer.css
is not generated.I've created the repo https://github.com/maheshbansod/atomizer-vite which shows this.
I'm having the same problem on vite+ts project too.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
The file
dist/atomizer.css
should be generated with correct classes.Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: