DEV Community

loading...

Discussion on: Build a Beautiful Website with VuePress and Tailwind.css

Collapse
vaibks profile image
Vaibhav Shinde

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';