ky-is / vitepress-starter-tailwind

A template for using TailwindCSS with VitePress.

Home Page:https://github.com/vuejs/vitepress/issues/62#issuecomment-736663484

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

its not an issue help required

prashantnirgun opened this issue · comments

Hi

Thanks for the repo I am going to use tailwind first time so its found to be a great repo for me. Good work keep it up. I just need help when I build the project it was showing me the warning can you help me to fix the issue

warn - Tailwind is not purging unused styles because no template paths have been provided.
warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set purge: false in your Tailwind config file to silence this warning.
warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css

is it because of tailwind.config.js https://codybontecou.com/tailwindcss-with-vitepress.html

commented

I updated the dependencies and added support for Tailwind v3's content-based purge approach. If you're still having any issues let me know!

wait something broken with yarn I raised a ticket vuejs/vitepress#544

yarn run v1.22.17
$ vitepress build docs
vitepress v0.22.2
⠴ building client + server bundles...
warn - Tailwind is not purging unused styles because no template paths have been provided.
warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set purge: false in your Tailwind config file to silence this warning.
warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
✓ building client + server bundles...
✓ rendering pages...
build complete in 27.72s.
Done in 28.26s.

Thanks this get build with some warning

commented

You'll need to use Tailwindcss v3 now for this to work out of the box. Otherwise follow the docs for v2 here: https://v2.tailwindcss.com/docs/optimizing-for-production#purge-css-options

No I updated Tailwing 3 and warning still there on build.
Beside I see Root still it shows underline

commented

A clean clone and build works as intended for me, so going to close this for now. If you're still encountering bugs do share the logs, thanks!