Skip to content

No dependencies to successor loader #120

Description

@nrninsane

Good day,

I have a webpack config, in which html-files are loaded dynamically. More specifically html-files are loaded through [html-loader → extract-loader → file-loader]. In this journey I have found that extract-loader does not output the dependency js-files to file-loader.

I have found that directly referring to file-loader explicitly works, so this tells me that we can solve this somehow with modifications to extract-loader (and perhaps also file-loader).

The potential solutions I see:

  • perhaps we can have extract-loader output an array of file-content, which file-loader then picks up and creates several files out of;
  • or perhaps we can give extract-loader an extra option to emit dependencies to the successor loader in some other way.
    • an example would be inlining the successor loader for dependencies `{ ..., dependencyLoaders: 'file-loader!'}

I am willing to spend time on implementing the changes for a pull request.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions