Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
6aabe7e8
Commit
6aabe7e8
authored
8 years ago
by
Dan Abramov
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Clarify "homepage" field has special meaning
parent
dcdcab0e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
template/README.md
+3
-0
template/README.md
with
3 additions
and
0 deletions
+3
-0
template/README.md
+
3
-
0
View file @
6aabe7e8
...
@@ -552,6 +552,9 @@ Open your `package.json` and add a `homepage` field:
...
@@ -552,6 +552,9 @@ Open your `package.json` and add a `homepage` field:
"
homepage
"
:
"
http://myusername.github.io/my-app
"
,
"
homepage
"
:
"
http://myusername.github.io/my-app
"
,
```
```
**The above step is important!**
Create React App uses the
`homepage`
field to determine the root URL in the built HTML file.
Now, whenever you run
`npm run build`
, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:
Now, whenever you run
`npm run build`
, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:
```
sh
```
sh
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets