Just what I was looking for!
But the problem now is that the build time is 10x more.
It only took 1-2s to build before, now it takes 10-12s by adding tailwind
Is there a way to cache the tailwind file?
I think it is being generated on each build in the dev server.
Update
Found a fix!
Instead of importing it in the style tag, import it in the script tag as the tailwindcss page specifies.
This saved my time from 10s to 0.6s!
Add the following line to your script tag
import'./styles/tailwind.css';
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just what I was looking for!
But the problem now is that the build time is 10x more.
It only took 1-2s to build before, now it takes 10-12s by adding tailwind
Is there a way to cache the tailwind file?
I think it is being generated on each build in the dev server.
Update
Found a fix!
Instead of importing it in the
style
tag, import it in thescript
tag as the tailwindcss page specifies.This saved my time from 10s to 0.6s!
Add the following line to your
script
tag