Skip to content

Commit 241e7f4

Browse files
authored
Merge pull request #21 from facebook/next
Update Upstream
2 parents 7c54a93 + 2e690e9 commit 241e7f4

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
## 1.1.2 (April 3, 2018)
2+
3+
#### :bug: Bug Fix
4+
5+
* `react-scripts`
6+
7+
* [#4085](https://github.com/facebook/create-react-app/pull/4085) Resolve `.js` before `.mjs` files to unbreak dependencies with native ESM support. ([@leebyron](https://github.com/leebyron))
8+
9+
#### :memo: Documentation
10+
11+
* `react-scripts`
12+
13+
* [#4197](https://github.com/facebook/create-react-app/pull/4197) Add troubleshooting for Github Pages. ([@xnt](https://github.com/xnt))
14+
15+
#### Committers: 2
16+
- Lee Byron ([leebyron](https://github.com/leebyron))
17+
- Vicente Plata ([xnt](https://github.com/xnt))
18+
19+
### Migrating from 1.1.1 to 1.1.2
20+
21+
Inside any created project that has not been ejected, run:
22+
23+
```
24+
npm install --save --save-exact [email protected]
25+
```
26+
27+
or
28+
29+
```
30+
yarn add --exact [email protected]
31+
```
32+
133
## 1.1.1 (February 2, 2018)
234

335
#### :bug: Bug Fix

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,16 @@ module.exports = {
378378
// Minify the code.
379379
new UglifyJsPlugin({
380380
uglifyOptions: {
381-
ecma: 8,
381+
parse: {
382+
// we want uglify-js to parse ecma 8 code. However, we don't want it
383+
// to apply any minfication steps that turns valid ecma 5 code
384+
// into invalid ecma 5 code. This is why the 'compress' and 'output'
385+
// sections only apply transformations that are ecma 5 safe
386+
// https://github.com/facebook/create-react-app/pull/4234
387+
ecma: 8,
388+
},
382389
compress: {
390+
ecma: 5,
383391
warnings: false,
384392
// Disabled because of an issue with Uglify breaking seemingly valid code:
385393
// https://github.com/facebook/create-react-app/issues/2376
@@ -391,6 +399,7 @@ module.exports = {
391399
safari10: true,
392400
},
393401
output: {
402+
ecma: 5,
394403
comments: false,
395404
// Turned on because emoji and regex is not minified properly using default
396405
// https://github.com/facebook/create-react-app/issues/2488

packages/react-scripts/template/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,6 +2387,16 @@ GitHub Pages doesn’t support routers that use the HTML5 `pushState` history AP
23872387
* You could switch from using HTML5 history API to routing with hashes. If you use React Router, you can switch to `hashHistory` for this effect, but the URL will be longer and more verbose (for example, `http://user.github.io/todomvc/#/todos/42?_k=yknaj`). [Read more](https://reacttraining.com/react-router/web/api/Router) about different history implementations in React Router.
23882388
* Alternatively, you can use a trick to teach GitHub Pages to handle 404 by redirecting to your `index.html` page with a special redirect parameter. You would need to add a `404.html` file with the redirection code to the `build` folder before deploying your project, and you’ll need to add code handling the redirect parameter to `index.html`. You can find a detailed explanation of this technique [in this guide](https://github.com/rafrex/spa-github-pages).
23892389

2390+
#### Troubleshooting
2391+
2392+
##### "/dev/tty: No such a device or address"
2393+
2394+
If, when deploying, you get `/dev/tty: No such a device or address` or a similar error, try the follwing:
2395+
2396+
1. Create a new [Personal Access Token](https://github.com/settings/tokens)
2397+
2. `git remote set-url origin https://<user>:<token>@github.com/<user>/<repo>` .
2398+
3. Try `npm run deploy again`
2399+
23902400
### [Heroku](https://www.heroku.com/)
23912401

23922402
Use the [Heroku Buildpack for Create React App](https://github.com/mars/create-react-app-buildpack).<br>

packages/react-scripts/template/gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
44
/node_modules

0 commit comments

Comments
 (0)