Skip to content

Disable inline images for images that are less than 10,000 bytes #3437

Closed
@nicgirault

Description

@nicgirault

Thanks for this awesome project.

I recently get a warning during build telling me:

The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb

Analyzing the project dependencies, I discovered that the easiest and most significant improvement would be to get rid of these small images under 10,000 bytes that are imported as Data URI by webpack (it's 25% of the size of my app).

I don't see an option to disable the feature. Does it exists? If no I have currently 2 options that are:

  • moving the images in the public folder
  • ejecting the app

Both options are a big loss so an option to change the current behaviour would be nice.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions