G100my / Blog

G100's Personal blog, Build in Vuepress@next + vite.
https://g100my.github.io/Blog/
1 stars 0 forks source link

SOS #3

Closed thomas-bello closed 1 year ago

thomas-bello commented 2 years ago

大佬,请教一下,我参考您的项目自己也配置了一个,但是用的是 "vuepress": "^2.0.0-beta.49",tailwindcss` 部分的配置有点问题,请问可以帮忙看看吗?

docs/.vuepress/theme/components/Header.vuestyle 内用 @apply 是可以用到 tailwindcss 的,但是在 templateclass 内就不可以了

可复现仓库 https://github.com/thomas-bello/vuepress2-tailwind-starter

G100my commented 1 year ago

您好,新年快樂 這似乎是因為 vuepress 檔案目錄結構是 .vuepress、是 . 開頭的,所以被系統忽略了。 在 tailwind.config.content 裡面明確指出路徑就可以了。

content: ['docs/.vuepress/**/*.vue'],

抱歉我的 blog 一直是荒廢狀態,這次過年心血來潮來整理才看到😅 居然過了半年了...