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: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,13 +65,15 @@ my-app/
65
65
public/
66
66
favicon.ico
67
67
index.html
68
+
manifest.json
68
69
src/
69
70
App.css
70
71
App.js
71
72
App.test.js
72
73
index.css
73
74
index.js
74
75
logo.svg
76
+
registerServiceWorker.js
75
77
```
76
78
77
79
No configuration or complicated folder structures, just the files you need to build your app.<br>
@@ -100,7 +102,9 @@ Builds the app for production to the `build` folder.<br>
100
102
It correctly bundles React in production mode and optimizes the build for the best performance.
101
103
102
104
The build is minified and the filenames include the hashes.<br>
103
-
Your app is ready to be deployed!
105
+
By default, it also [includes a service worker](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app) so that your app loads from local cache on future visits.
106
+
107
+
Your app is ready to be deployed.
104
108
105
109
## User Guide
106
110
@@ -116,6 +120,7 @@ The [User Guide](https://github.com/facebookincubator/create-react-app/blob/mast
116
120
-[Changing the Page `<title>`](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#changing-the-page-title)
117
121
-[Installing a Dependency](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#installing-a-dependency)
118
122
-[Importing a Component](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#importing-a-component)
-[Adding a Stylesheet](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-stylesheet)
-[Adding a CSS Preprocessor (Sass, Less etc.)](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc)
@@ -132,7 +137,6 @@ The [User Guide](https://github.com/facebookincubator/create-react-app/blob/mast
132
137
-[Generating Dynamic `<meta>` Tags on the Server](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#generating-dynamic-meta-tags-on-the-server)
133
138
-[Pre-Rendering into Static HTML Files](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#pre-rendering-into-static-html-files)
-[Developing Components in Isolation](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#developing-components-in-isolation)
136
140
-[Making a Progressive Web App](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)
@@ -162,6 +166,7 @@ Please refer to the [User Guide](https://github.com/facebookincubator/create-rea
162
166
* Import CSS and image files directly from JavaScript.
163
167
* Autoprefixed CSS, so you don’t need `-webkit` or other prefixes.
164
168
* A `build` script to bundle JS, CSS, and images for production, with sourcemaps.
169
+
* An offline-first [service worker](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers) and a [web app manifest](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/), meeting all the [Progressive Web App](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app) criteria.
165
170
166
171
**The feature set is intentionally limited**. It doesn’t support advanced features such as server rendering or CSS modules. The tool is also **non-configurable** because it is hard to provide a cohesive experience and easy updates across a set of tools when the user can tweak anything.
167
172
@@ -241,7 +246,6 @@ Notable alternatives also include:
Copy file name to clipboardExpand all lines: packages/eslint-config-react-app/index.js
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,14 @@ module.exports = {
195
195
ignoreRestSiblings: true,
196
196
},
197
197
],
198
-
'no-use-before-define': ['warn','nofunc'],
198
+
'no-use-before-define': [
199
+
'warn',
200
+
{
201
+
functions: false,
202
+
classes: false,
203
+
variables: false,
204
+
},
205
+
],
199
206
'no-useless-computed-key': 'warn',
200
207
'no-useless-concat': 'warn',
201
208
'no-useless-constructor': 'warn',
@@ -210,7 +217,6 @@ module.exports = {
210
217
],
211
218
'no-with': 'warn',
212
219
'no-whitespace-before-property': 'warn',
213
-
'operator-assignment': ['warn','always'],
214
220
radix: 'warn',
215
221
'require-yield': 'warn',
216
222
'rest-spread-spacing': ['warn','never'],
@@ -225,12 +231,12 @@ module.exports = {
225
231
// {
226
232
// object: 'require',
227
233
// property: 'ensure',
228
-
// message: 'Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import',
234
+
// message: 'Please use import() instead. More info: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#code-splitting',
229
235
// },
230
236
{
231
237
object: 'System',
232
238
property: 'import',
233
-
message: 'Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import',
239
+
message: 'Please use import() instead. More info: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#code-splitting',
On macOS, tries to find a known running editor process and opens the file in it. It can also be explicitly configured by `REACT_EDITOR`, `VISUAL`, or `EDITOR` environment variables. For example, you can put `REACT_EDITOR=atom` in your `.env.local` file, and Create React App will respect that.
Prints hosting instructions after the project is built.
266
+
267
+
Pass your parsed `package.json` object as `appPackage`, your the URL where you plan to host the app as `publicUrl`, `output.publicPath` from your Webpack configuration as `publicPath`, the `buildFolder` name, and whether to `useYarn` in instructions.
Returns a Promise resolving to either `defaultPort` or next available port if the user confirms it is okay to do. If the port is taken and the user has refused to use another port, or if the terminal is not interactive and can’t present user with the choice, resolves to `null`.
Creates a Webpack compiler instance for WebpackDevServer with built-in helpful messages. Takes the `require('webpack')` entry point as the first argument. To provide the `urls` argument, use `prepareUrls()` described below.
0 commit comments