Skip to content

Commit

Permalink
Update with-tailwindcss example (#10141)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
zhe and Timer committed Jan 17, 2020
1 parent 15cffd0 commit 0b1217e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
13 changes: 6 additions & 7 deletions examples/with-tailwindcss/package.json
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/pages/index.js
Expand Up @@ -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>
)
3 changes: 1 addition & 2 deletions examples/with-tailwindcss/postcss.config.js
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/styles/index.css
Expand Up @@ -2,8 +2,8 @@

/* purgecss start ignore */
@tailwind base;
/* purgecss end ignore */
@tailwind components;
/* purgecss end ignore */
@tailwind utilities;

.hero {
Expand Down

0 comments on commit 0b1217e

Please sign in to comment.