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: docusaurus/docs/advanced-configuration.md
-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ You can adjust various development and production settings by setting environmen
22
22
| REACT_EDITOR | ✅ Used | 🚫 Ignored | When an app crashes in development, you will see an error overlay with clickable stack trace. When you click on it, Create React App will try to determine the editor you are using based on currently running processes, and open the relevant source file. You can [send a pull request to detect your editor of choice](https://github.com/facebook/create-react-app/issues/2636). Setting this environment variable overrides the automatic detection. If you do it, make sure your systems [PATH](<https://en.wikipedia.org/wiki/PATH_(variable)>) environment variable points to your editor’s bin folder. You can also set it to `none` to disable it completely. |
23
23
| 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. |
24
24
| GENERATE_SOURCEMAP | 🚫 Ignored | ✅ Used | When set to `false`, source maps are not generated for a production build. This solves out of memory (OOM) issues on some smaller machines. |
25
-
| 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`. |
26
25
| 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. |
27
26
| IMAGE_INLINE_SIZE_LIMIT | 🚫 Ignored | ✅ Used | By default, images smaller than 10,000 bytes are encoded as a data URI in base64 and inlined in the CSS or JS build artifact. Set this to control the size limit in bytes. Setting it to 0 will disable the inlining of images. |
28
27
| EXTEND_ESLINT | ✅ Used | ✅ Used | When set to `true`, user provided ESLint configs will be used by `eslint-loader`. Note that any rules set to `"error"` will stop the application from building. |
// Create the production build and print the deployment instructions.
148
148
functionbuild(previousFileSizes){
149
-
// We used to support resolving modules according to `NODE_PATH`.
150
-
// This now has been deprecated in favor of jsconfig/tsconfig.json
151
-
// This lets you use absolute paths in imports inside large monorepos:
152
-
if(process.env.NODE_PATH){
153
-
console.log(
154
-
chalk.yellow(
155
-
'Setting NODE_PATH to resolve modules absolutely has been deprecated in favor of setting baseUrl in jsconfig.json (or tsconfig.json if you are using TypeScript) and will be removed in a future major release of create-react-app.'
156
-
)
157
-
);
158
-
console.log();
159
-
}
160
-
161
149
console.log('Creating an optimized production build...');
// We used to support resolving modules according to `NODE_PATH`.
146
-
// This now has been deprecated in favor of jsconfig/tsconfig.json
147
-
// This lets you use absolute paths in imports inside large monorepos:
148
-
if(process.env.NODE_PATH){
149
-
console.log(
150
-
chalk.yellow(
151
-
'Setting NODE_PATH to resolve modules absolutely has been deprecated in favor of setting baseUrl in jsconfig.json (or tsconfig.json if you are using TypeScript) and will be removed in a future major release of create-react-app.'
152
-
)
153
-
);
154
-
console.log();
155
-
}
156
-
157
145
console.log(chalk.cyan('Starting the development server...\n'));
0 commit comments