zaydek / react-ssg

Server-generated React
MIT License
20 stars 4 forks source link

copy static files from static directory to build #28

Open lukebarlow opened 3 years ago

lukebarlow commented 3 years ago

You may have other plans for dealing with images and other static files, or maybe I missed something about how you can already do it, but in any case this PR adds a step to the prerender script where it copies any files from the new 'static' directory into the build directory. A sample image is added, and shown in the App.tsx template