Skip to content

Read xml files and other data #9079

Open

Description

@Sharcoux

Is your proposal related to a problem?

I don't understand why we still have to face "you may need an appropriate loader to handle this file type" kind of error. I'm trying to load an xml file from my assets, which doesn't sound like something completely crazy in a web environment, and I get this message.

I would just expect webpack to be configured to load the unknown files extensions as raw text, or at least common web extensions like xml, xhtml, and such.

Describe the solution you'd like

I think that we could just update the webpack configuration to load xml as raw text. This way at least we would be able to parse it.

Describe alternatives you've considered

The only alternative I know of right now would be to eject, which is not much of an alternative...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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