Merged
requested to merge github/fork/peterbe/3437-environment-variable-to-disable-inlining-images into master
Created by: peterbe
Fixes #3437 (closed)
I verified that this worked by editing the default application (packages/react-scripts/template/src/App.js
) to reference a logo.png
image that I made up. The file was 5,237 bytes and when I ran yarn run build
the build/static/js/main.8204aa3b.chunk.js
did contain the base64 string. Then, running IMAGE_INLINE_SIZE_LIMIT=5000 yarn run build
this time the build/static/js/main.499ec856.chunk.js
file was -5.27KB and the file build/static/media/logo.adb700a2.png
existed.