You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: template/README.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ Please be advised that this is also a custom feature of Webpack.
219
219
220
220
**It is not required for React** but many people enjoy it (and React Native uses a similar mechanism for images). However it may not be portable to some other environments, such as Node.js and Browserify. If you prefer to reference static assets in a more traditional way outside the module system, please let us know [in this issue](https://github.com/facebookincubator/create-react-app/issues/28), and we will consider support for this.
221
221
222
-
### Adding Flow
222
+
### Add Flow
223
223
224
224
Flow typing is currently [not supported out of the box](https://github.com/facebookincubator/create-react-app/issues/72) with the default `.flowconfig` generated by Flow. If you run it, you might get errors like this:
We will consider integrating more tightly with Flow in the future so that you don’t have to do this.
277
277
278
+
### Deploy to GitHub Pages
279
+
280
+
First, open your `package.json` and add a `homepage` field.
281
+
It could look like this:
282
+
283
+
```js
284
+
{
285
+
"name":"my-app",
286
+
"homepage":"http://myusername.github.io/my-app",
287
+
// ...
288
+
}
289
+
```
290
+
291
+
Now, whenever you run `npm run build`, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:
292
+
293
+
```sh
294
+
git checkout -B gh-pages
295
+
git add -f build
296
+
git commit -am "Rebuild website"
297
+
git push origin :gh-pages
298
+
git subtree push --prefix build origin gh-pages
299
+
git checkout -
300
+
```
301
+
302
+
You may copy and paste them, or put them into a custom shell script. You may also customize them for another hosting provider.
303
+
278
304
### Something Missing?
279
305
280
306
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebookincubator/create-react-app/issues) or [contribute some!](https://github.com/facebookincubator/create-react-app/edit/master/template/README.md)
0 commit comments