Skip to content

Commit d2128b6

Browse files
iRoachiegaearon
authored andcommitted
Added instructions for using local images (facebook#589)
1 parent a2d0469 commit d2128b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/template/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ function Header() {
320320
export default function Header;
321321
```
322322

323+
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.
324+
323325
This works in CSS too:
324326

325327
```css

0 commit comments

Comments
 (0)