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
38a1f27e
Commit
38a1f27e
authored
8 years ago
by
Ville Immonen
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Tweak readme
parent
feb6036f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/README.md
+2
-2
packages/react-scripts/template/README.md
with
2 additions
and
2 deletions
+2
-2
packages/react-scripts/template/README.md
+
2
-
2
View file @
38a1f27e
...
@@ -885,7 +885,7 @@ Open your `package.json` and add a `homepage` field:
...
@@ -885,7 +885,7 @@ Open your `package.json` and add a `homepage` field:
**The above step is important!**
<br>
**The above step is important!**
<br>
Create React App uses the
`homepage`
field to determine the root URL in the built HTML file.
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 instructions on how to deploy to GitHub pages
:
Now, whenever you run
`npm run build`
, you will see a cheat sheet with instructions on how to deploy to GitHub pages
.
To publish it at
[
http://myusername.github.io/my-app
](
http://myusername.github.io/my-app
)
, run:
To publish it at
[
http://myusername.github.io/my-app
](
http://myusername.github.io/my-app
)
, run:
...
@@ -941,7 +941,7 @@ With this setup Netlify will build and deploy when you push to git or open a pul
...
@@ -941,7 +941,7 @@ With this setup Netlify will build and deploy when you push to git or open a pul
2.
Pick your Git hosting service and select your repository
2.
Pick your Git hosting service and select your repository
3.
Click
`Build your site`
3.
Click
`Build your site`
**Support for client
si
t
e routing:**
**Support for client
-
si
d
e routing:**
To support
`pushState`
, make sure to create a
`public/_redirects`
file with the following rewrite rules:
To support
`pushState`
, make sure to create a
`public/_redirects`
file with the following rewrite rules:
...
...
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