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
-[#5631](https://github.com/facebook/create-react-app/pull/5631) Generalize the adding bootstrap documentation. ([@jquense](https://github.com/jquense))
11
+
-[#6084](https://github.com/facebook/create-react-app/pull/6084) Remove outdated docs for setting up eslint in editor. ([@LukasWerfel](https://github.com/LukasWerfel))
12
+
-[#6061](https://github.com/facebook/create-react-app/pull/6061) Fix control comment of CSS Grid prefixing. ([@denexapp](https://github.com/denexapp))
**This is an optional feature.** Regular `<link>` stylesheets and CSS files are fully supported. CSS Modules are turned on for files ending with the `.module.css` extension.
Copy file name to clipboardExpand all lines: docusaurus/docs/advanced-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,4 @@ You can adjust various development and production settings by setting environmen
17
17
| CHOKIDAR_USEPOLLING | ✅ Used | 🚫 Ignored | When set to `true`, the watcher runs in polling mode, as necessary inside a VM. Use this option if `npm start` isn't detecting changes. |
18
18
| GENERATE_SOURCEMAP | 🚫 Ignored | ✅ Used | When set to `false`, source maps are not generated for a production build. This solves OOM issues on some smaller machines. |
19
19
| NODE_PATH | ✅ Used | ✅ Used | Same as [`NODE_PATH` in Node.js](https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders), but only relative folders are allowed. Can be handy for emulating a monorepo setup by setting `NODE_PATH=src`. |
20
-
| INLINE_RUNTIME_CHUNK | 🚫 Ignored | ✅ Used | By default, Create React App will embed the runtime script into `index.html` during the production build. When set to `false`, the script will not be embedded and will be imported as usual. This is normally required when dealing with CSP. ||
20
+
| INLINE_RUNTIME_CHUNK | 🚫 Ignored | ✅ Used | By default, Create React App will embed the runtime script into `index.html` during the production build. When set to `false`, the script will not be embedded and will be imported as usual. This is normally required when dealing with CSP. |
Copy file name to clipboardExpand all lines: docusaurus/docs/deployment.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,11 @@ npm install -g serve
15
15
serve -s build
16
16
```
17
17
18
-
The last command shown above will serve your static site on the port **5000**. Like many of [serve](https://github.com/zeit/serve)’s internal settings, the port can be adjusted using the `-p` or `--port` flags.
18
+
The last command shown above will serve your static site on the port **5000**. Like many of [serve](https://github.com/zeit/serve)’s internal settings, the port can be adjusted using the `-l` or `--listen` flags:
19
+
20
+
```sh
21
+
serve -s build -l 4000
22
+
```
19
23
20
24
Run this command to get a full list of the options available:
21
25
@@ -106,7 +110,8 @@ To override this, specify the `homepage` in your `package.json`, for example:
106
110
This will let Create React App correctly infer the root path to use in the generated HTML file.
107
111
108
112
**Note**: If you are using `react-router@^4`, you can root `<Link>`s using the `basename` prop on any `<Router>`.<br>
109
-
More information [here](https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string).<br>
113
+
More information [here](https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string).<br>
114
+
110
115
<br>
111
116
For example:
112
117
@@ -240,7 +245,8 @@ For more information see [Firebase Hosting](https://firebase.google.com/docs/hos
240
245
241
246
### Step 1: Add `homepage` to `package.json`
242
247
243
-
**The step below is important!**<br>
248
+
**The step below is important!**<br>
249
+
244
250
**If you skip it, your app will not deploy correctly.**
245
251
246
252
Open your `package.json` and add a `homepage` field for your project:
@@ -291,11 +297,10 @@ Add the following scripts in your `package.json`:
291
297
292
298
The `predeploy` script will run automatically before `deploy` is run.
293
299
294
-
If you are deploying to a GitHub user page instead of a project page you'll need to make two
295
-
additional modifications:
300
+
If you are deploying to a GitHub user page instead of a project page you'll need to make one
301
+
additional modification:
296
302
297
-
1. First, change your repository's source branch to be any branch other than **master**.
298
-
1. Additionally, tweak your `package.json` scripts to push deployments to **master**:
303
+
1. Tweak your `package.json` scripts to push deployments to **master**:
299
304
300
305
```diff
301
306
"scripts": {
@@ -312,7 +317,7 @@ Then run:
312
317
npm run deploy
313
318
```
314
319
315
-
### Step 4: Ensure your project’s settings use `gh-pages`
320
+
### Step 4: For a project page, ensure your project’s settings use `gh-pages`
316
321
317
322
Finally, make sure **GitHub Pages** option in your GitHub project settings is set to use the `gh-pages` branch:
Copy file name to clipboardExpand all lines: docusaurus/docs/getting-started.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ cd my-app
14
14
npm start
15
15
```
16
16
17
+
> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version.
18
+
17
19
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
18
20
19
21
Then open [http://localhost:3000/](http://localhost:3000/) to see your app.
Copy file name to clipboardExpand all lines: docusaurus/docs/supported-browsers-features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This project supports a superset of the latest JavaScript standard. In addition
19
19
-[Class Fields and Static Properties](https://github.com/tc39/proposal-class-public-fields) (part of stage 3 proposal).
20
20
-[JSX](https://facebook.github.io/react/docs/introducing-jsx.html), [Flow](./adding-flow) and [TypeScript](./adding-typescript).
21
21
22
-
Learn more about [different proposal stages](https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets-).
22
+
Learn more about [different proposal stages](https://tc39.github.io/process-document/).
23
23
24
24
While we recommend using experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide [codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) if any of these proposals change in the future.
0 commit comments