Skip to content

Commit

Permalink
Add documentation for TARGET_ELECTRON
Browse files Browse the repository at this point in the history
  • Loading branch information
heyimalex authored and danielmahon committed Jul 5, 2019
1 parent 75d6580 commit ccd4419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docusaurus/docs/advanced-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ You can adjust various development and production settings by setting environmen
| 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`. |
| 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. |
| 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. |
| TARGET_ELECTRON | ✅ Used | ✅ Used | When set to `true`, the internal webpack [target](https://webpack.js.org/configuration/target/) is set to `electron-renderer` and native Node modules are no longer mocked. This makes using Create React App with electron possible. |

0 comments on commit ccd4419

Please sign in to comment.