Commit 0b1217e7 authored by Zhe Zhang's avatar Zhe Zhang Committed by Joe Haddad

Update with-tailwindcss example (#10141)

Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 15cffd00
......@@ -7,15 +7,14 @@
"start": "next start"
},
"dependencies": {
"next": "^9.1.8-canary.11",
"react": "^16.7.0",
"react-dom": "^16.7.0"
"next": "^9.2.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^9.6.5",
"cssnano": "^4.1.0",
"postcss-easy-import": "^3.0.0",
"tailwindcss": "^1.0.1"
"autoprefixer": "^9.7.4",
"postcss-import": "^12.0.1",
"tailwindcss": "^1.1.4"
}
}
......@@ -4,7 +4,7 @@ export default () => (
<div>
<Nav />
<div className="hero">
<h1 className="title">Next.js + Tailwind css</h1>
<h1 className="title">Next.js + Tailwind CSS</h1>
</div>
</div>
)
......@@ -9,8 +9,7 @@ module.exports = {
'./pages/**/*.{js,jsx,ts,tsx}',
'./components/**/*.{js,jsx,ts,tsx}',
],
defaultExtractor: content =>
content.match(/[A-Za-z0-9-_:/]+/g) || [],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
},
]
: undefined,
......
......@@ -2,8 +2,8 @@
/* purgecss start ignore */
@tailwind base;
/* purgecss end ignore */
@tailwind components;
/* purgecss end ignore */
@tailwind utilities;
.hero {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment