astroturfcss / astroturf

Better Styling through Compiling: CSS-in-JS for those that want it all.
https://astroturfcss.github.io/astroturf/
MIT License
2.28k stars 60 forks source link

feat: add astroturf vite plugin #701

Open azat-io opened 3 years ago

azat-io commented 3 years ago

Added plugin for Vite

Currently we have the same problem as in Parcel with saving temporary css files https://github.com/4Catalyzer/astroturf/issues/610

It means that you have to use this plugin with some delete plugin as here https://github.com/4Catalyzer/astroturf/issues/111#issuecomment-674796760

jquense commented 3 years ago

This is great, I'm not sure if it should go here since I don't use vite, and would be afraid it'd break or get out of date without realizing

azat-io commented 3 years ago

@jquense There is webpack loader in this repo, so why not have Vite plugin here? Also, I can can try to add some tests and some code with Vite to /example folder.

jquense commented 3 years ago

it's just a matter of what i can reasonably maintain. I use webpack so i can be sure the webpack loader is up to date, tested and working. I don't use Vite and don't know it's plugin system at all so i'd not be able to update it, fix bugs, or answer questions about it

azat-io commented 3 years ago

@jquense Okay, I'll move this plugin to my repo and create pull request to Astroturf docs