From 61b123df577bd8da7b854fec3a7d165b1948c735 Mon Sep 17 00:00:00 2001 From: Jurie Horneman Date: Sun, 20 Nov 2016 20:29:45 +0100 Subject: [PATCH] Added info on using global variables. (#976) * Added info on using global variables. See issue #972. * Fixed typo. * Moved new section. * Small tweaks * Syntax highlighting --- packages/react-scripts/template/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 671d743d..cd841725 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -20,6 +20,7 @@ You can find the most recent version of this guide [here](https://github.com/fac - [Post-Processing CSS](#post-processing-css) - [Adding Images and Fonts](#adding-images-and-fonts) - [Using the `public` Folder](#using-the-public-folder) +- [Using Global Variables Defined Elsewhere](#using-global-variables-defined-elsewhere) - [Adding Bootstrap](#adding-bootstrap) - [Adding Flow](#adding-flow) - [Adding Custom Environment Variables](#adding-custom-environment-variables) @@ -384,6 +385,22 @@ Keep in mind the downsides of this approach: However, it can be handy for referencing assets like [`manifest.webmanifest`](https://developer.mozilla.org/en-US/docs/Web/Manifest) from HTML, or including small scripts like [`pace.js`](http://github.hubspot.com/pace/docs/welcome/) outside of the bundled code. +Note that if you add a `