How does Tailwind connect to SvelteKit? #7995
gushogg-blake
started this conversation in
General
Replies: 1 comment
-
Update - it looks like SvelteKit looks for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After following the guide at https://tailwindcss.com/docs/guides/sveltekit, tailwind classes seem to work, but I'm puzzled as to how SvelteKit knows to invoke Tailwind here.
Here is my
svelte.config.js
:My understanding is that
npm run dev
starts SvelteKit, which uses this config file to do all preprocessing etc, so unless Tailwind is referenced here (either directly or via PostCSS) it won't run as part of the Svelte build. What am I missing? How does Tailwind actually get invoked here?Beta Was this translation helpful? Give feedback.
All reactions