cypress-io / instrument-cra

Little module for CRA applications to instrument code without ejecting react-scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build does not generate relative file paths

RichieRunner opened this issue · comments

When using this package with CRA build command: react-scripts -r @cypress/instrument-cra build", the result build files are not correctly generated with relative file paths

On the left is the instrumented build of asset-manifest.json with this package, and on the right is the vanilla CRA build. You can see that static files generated with this package does NOT include the ./ relative path to the static files.
image

As such, on page load of the index.html, static files are never found:
image

image

As such, it should be noted that this package should NOT be used with CRA build command (in its current state), but only for CRA start command.