Skip to content

Commit

Permalink
update reference with new name (#2259)
Browse files Browse the repository at this point in the history
s/adding-images-and-fonts/adding-images-fonts-and-files/
  • Loading branch information
enguerran authored and gaearon committed May 19, 2017
1 parent bf7df73 commit d6d2f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ The `<script>` tag with the compiled code will be added to it automatically duri
You can also add other assets to the `public` folder.

Note that we normally encourage you to `import` assets in JavaScript files instead.
For example, see the sections on [adding a stylesheet](#adding-a-stylesheet) and [adding images and fonts](#adding-images-and-fonts).
For example, see the sections on [adding a stylesheet](#adding-a-stylesheet) and [adding images and fonts](#adding-images-fonts-and-files).
This mechanism provides a number of benefits:

* Scripts and stylesheets get minified and bundled together to avoid extra network requests.
Expand Down Expand Up @@ -619,7 +619,7 @@ Keep in mind the downsides of this approach:

### When to Use the `public` Folder

Normally we recommend importing [stylesheets](#adding-a-stylesheet), [images, and fonts](#adding-images-and-fonts) from JavaScript.
Normally we recommend importing [stylesheets](#adding-a-stylesheet), [images, and fonts](#adding-images-fonts-and-files) from JavaScript.
The `public` folder is useful as a workaround for a number of less common cases:

* You need a file with a specific name in the build output, such as [`manifest.webmanifest`](https://developer.mozilla.org/en-US/docs/Web/Manifest).
Expand Down

0 comments on commit d6d2f6d

Please sign in to comment.