webpack config not work when running an async task in a loader #15979
tmyeahsing
started this conversation in
General
Replies: 1 comment 4 replies
-
Please provide configuration to reproduce the problem |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
running an async task in a loader with webpack config
What is the expected behavior?
I'm using ref-loader to define an image, the codes are:
zh.json
entry.js
webpack loader config
I failed to run build, with an error:

It seems that the
zh.png
that required was loaded as plain text, and not going through url-loader that I had define.And ref-loader's codes are here:
What is motivation or use case for adding/changing the behavior?
How should this be implemented in your opinion?
Are you willing to work on this yourself?
no
Beta Was this translation helpful? Give feedback.
All reactions