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

No dependencies to successor loader #120

Open
norentkhy opened this issue Mar 13, 2023 · 0 comments
Open

No dependencies to successor loader #120

norentkhy opened this issue Mar 13, 2023 · 0 comments

Comments

@norentkhy
Copy link

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.

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

No branches or pull requests

1 participant