Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limit to url-loader #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Undistraction
Copy link

@Undistraction Undistraction commented May 10, 2022

Echo Gatsby's file-size limit for inlining image files which is set to 10000 bytes / 10kb. Without this addition, any svgs that are imported via URLs as opposed to SVGR React components will be inlined into packages, regardless of file-size, for bigger SVGs or pages with many SVGs this can be a serious performance issue.

Closes #54

Echo Gatsby's file-size limit for inlining image files which is set to 10000 bytes / 10kb. Without this addition, any svgs that are imported via URLs as opposed to SVGR React components will be inlined into packages, regardless of file-size, for bigger SVGs or pages with many SVGs this can be a serious performance issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin adds webpack config meaning all svgs are inlined, regardless of size.
1 participant