Wanted to share some resources for getting Tailwin...
# javascript
v
Wanted to share some resources for getting Tailwind CSS working in a Kotlin/JS (really, MPP) project. I was working on this over the past month and it was surprisingly hard (not many resources online and I’m new to this whole stack). • Getting things working for development: https://github.com/nanodeath/kotlinjs-tailwindcss • Expanding on above to optimize for production: https://vple.me/posts/purging-tailwindcss-with-kotlinjs/ And for completeness, an earlier thread: https://kotlinlang.slack.com/archives/C0B8L3U69/p1600892124011900
🦜 1
👏 4
👍 3
🎉 1
d
@Vincent Le did you tried a new JIT engine in core? It was introduced in v2.1. Since you write “massive js.js file being loaded (9.20mb!) which contains all of Tailwind CSS.”
v
That first post was written by someone else! But I did figure out how to get Tailwind’s purging working for production builds, which significantly reduced the CSS size. The steps I used for that are in the second link.
423 Views