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
b4e877c8
Commit
b4e877c8
authored
Dec 14, 2018
by
Pojen Chen
Committed by
Tim Neutkens
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove <link ...style.css"> from Head in _document (#5887)
parent
af07611a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
_document.js
examples/with-next-sass/pages/_document.js
+1
-12
No files found.
examples/with-next-sass/pages/_document.js
View file @
b4e877c8
/*
In production the stylesheet is compiled to .next/static/style.css.
The file will be served from /_next/static/style.css
You could include it into the page using either next/head or a custom _document.js.
*/
import
Document
,
{
Head
,
Main
,
NextScript
}
from
'next/document'
import
Document
,
{
Head
,
Main
,
NextScript
}
from
'next/document'
export
default
class
MyDocument
extends
Document
{
export
default
class
MyDocument
extends
Document
{
render
()
{
render
()
{
return
(
return
(
<
html
>
<
html
>
<
Head
>
<
Head
/>
<
link
rel
=
'stylesheet'
href
=
'/_next/static/style.css'
/>
<
/Head
>
<
body
>
<
body
>
<
Main
/>
<
Main
/>
<
NextScript
/>
<
NextScript
/>
...
...
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