Skip to content

Commit

Permalink
Added instructions for using local images (facebook#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie authored and feiqitian committed Oct 25, 2016
1 parent 898fabc commit 97c4cf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ function Header() {
export default function Header;
```

This is currently required for local images. This ensures that when the project is built, webpack will correctly move the images into the build folder, and provide us with correct paths.

This works in CSS too:

```css
Expand Down

0 comments on commit 97c4cf8

Please sign in to comment.