Skip to content
Discussion options

You must be logged in to vote

Files not in the static folder will need you to require them so they enter Webpack's bundling pipeline and get emitted. They will end up in the build/assets/images folder and will be hashed. If you have some loader configured for Webpack, these images may also be minified / cropped, while images from static are always copied as-is and you can directly use URLs to reference them without require. (In fact if you require an image in static directory two copies would be created, one at the build root and one as asset)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slorber
Comment options

slorber Sep 1, 2021
Collaborator

@mpoundstone
Comment options

Answer selected by mpoundstone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants