contentlayerdev / contentlayerdev/next-contentlayer-example

Incorrect Tailwind config

未關閉
#19 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
104
分支
37
PR 合併指標
30 天內沒有已合併 PR

描述

I won't fork for such a small change.

Your `tailwind.config.js` is pointing to the `pages` folder, but you are implementing next's experimental `app` folder so no tailwind styling is being generated.
```js
(...)
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
(...)
```

Should be
```js
(...)
content: [
"./app/**/*.{js,ts,jsx,tsx}",
(...)
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Open tailwind.config.js and inspect the content paths used for the Next app. Update the configuration to cover the app folder as described in the issue, then verify that Tailwind styling is generated for files under app.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
next.js, tailwindcss
領域
frontend
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。