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 @@ ...@@ -7,15 +7,14 @@
"start": "next start" "start": "next start"
}, },
"dependencies": { "dependencies": {
"next": "^9.1.8-canary.11", "next": "^9.2.0",
"react": "^16.7.0", "react": "^16.12.0",
"react-dom": "^16.7.0" "react-dom": "^16.12.0"
}, },
"devDependencies": { "devDependencies": {
"@fullhuman/postcss-purgecss": "^1.3.0", "@fullhuman/postcss-purgecss": "^1.3.0",
"autoprefixer": "^9.6.5", "autoprefixer": "^9.7.4",
"cssnano": "^4.1.0", "postcss-import": "^12.0.1",
"postcss-easy-import": "^3.0.0", "tailwindcss": "^1.1.4"
"tailwindcss": "^1.0.1"
} }
} }
...@@ -4,7 +4,7 @@ export default () => ( ...@@ -4,7 +4,7 @@ export default () => (
<div> <div>
<Nav /> <Nav />
<div className="hero"> <div className="hero">
<h1 className="title">Next.js + Tailwind css</h1> <h1 className="title">Next.js + Tailwind CSS</h1>
</div> </div>
</div> </div>
) )
...@@ -9,8 +9,7 @@ module.exports = { ...@@ -9,8 +9,7 @@ module.exports = {
'./pages/**/*.{js,jsx,ts,tsx}', './pages/**/*.{js,jsx,ts,tsx}',
'./components/**/*.{js,jsx,ts,tsx}', './components/**/*.{js,jsx,ts,tsx}',
], ],
defaultExtractor: content => defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
content.match(/[A-Za-z0-9-_:/]+/g) || [],
}, },
] ]
: undefined, : undefined,
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
/* purgecss start ignore */ /* purgecss start ignore */
@tailwind base; @tailwind base;
/* purgecss end ignore */
@tailwind components; @tailwind components;
/* purgecss end ignore */
@tailwind utilities; @tailwind utilities;
.hero { .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