Created by: lucabattistini
When SVG files are imported (both as ReactComponent or url) and thus inlined in the bundle are also included, in a mistaken way, in the build/static/media
and consequence into the asset-manifest.json
.
This behaviour is critical when using Service Worker because at the start of the application the browser will send all the pre-cache request for all these SVG files that don't need at all.
This PR resolves #9167
This is a working example created by ejecting the config of a cra template: my-app.zip