stereobooster/react-snap

Bug Report: the lib breaks the excluded pages content

maxzinchenko opened this issue · 0 comments

Bug Report

Current Behavior
I spent some time digging and that's what I've found.

The lib re-writes index.html in the build folder and as a result, if I don't include one of my routes the lib breaks this page content. It works as expected, searches "root" id inside index.html, and then appends a react app into that div. BUT this document already has content of my "/" route.

React uses build/index.html that got modified by a lib.

Expected behavior/code
it shouldn't re-write index.html in the build directory.

Possible Solution
I suppose the lib should use 200.html instead of index.htm in this case or so