Straightforward guide to use TailwindCSS with Sapper
There are many articles online on integrating Tailwind into Next.js/Nuxt.js, but there are only a few ones for Sapper.
Most of them are:
outdated,
very complicated,
doesn't allow to use of all features of TailwindCSS, like @apply.
Some of them are...
blog.andrasbacsai.com4 min read
Hey Andras, great tutorial...it helped me setting up Tailwind CSS with my Sapper app finally. However, there is one thing I don't understand and I can't solve, yet. I'm using VSCode and right after I added svelte.config.js from your tutorial, all my Svelte files displayed a syntax error in the first line, where a <script> tag is opening (please see screenshot). Although I'm able to build and dev without problems, VSCode keeps showing me this as an error. The errors vanish after I commented out the 2 lines in svelte.config.js. Do you know how to fix this? Any help is much appreciated.