Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
0b1217e7
Commit
0b1217e7
authored
Jan 17, 2020
by
Zhe Zhang
Committed by
Joe Haddad
Jan 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update with-tailwindcss example (#10141)
Co-authored-by:
Joe Haddad
<
timer150@gmail.com
>
parent
15cffd00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
package.json
examples/with-tailwindcss/package.json
+6
-7
index.js
examples/with-tailwindcss/pages/index.js
+1
-1
postcss.config.js
examples/with-tailwindcss/postcss.config.js
+1
-2
index.css
examples/with-tailwindcss/styles/index.css
+1
-1
No files found.
examples/with-tailwindcss/package.json
View file @
0b1217e7
...
@@ -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"
}
}
}
}
examples/with-tailwindcss/pages/index.js
View file @
0b1217e7
...
@@ -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
>
)
)
examples/with-tailwindcss/postcss.config.js
View file @
0b1217e7
...
@@ -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
,
...
...
examples/with-tailwindcss/styles/index.css
View file @
0b1217e7
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment