windicss / vite-plugin-windicss

🍃 Windi CSS for Vite ⚡️
MIT License
854 stars 65 forks source link

Importing config in javascript #311

Open AskAlice opened 2 years ago

AskAlice commented 2 years ago

So my problem is that my config is in ./ as opposed to ./src so I can't simply import it as storybook and other things will consider that a virtual import.

WindiCSS allows you to import your config, but I don't see a way to do that with this plugin, nor is it documented.

AskAlice commented 1 year ago

wrote a plugin to do this myself. https://www.npmjs.com/package/vite-plugin-windicss-theme

Still think this should be part of vite-plugin-windicss directly, though