Help! Why when using resource types to process images, use require to import, and no longer need to reference the default attribute #19191
Unanswered
codewizardTM
asked this question in
Q&A
Replies: 1 comment
-
Sorry, I don't understand you, can you provide the code and configuration(s)? Thanks |
Beta Was this translation helpful? Give feedback.
0 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.
-
Why when using resource types to process images, use require to import, and no longer need to reference the default attribute.
I know that when using url-loader before, you need to use the default attribute to import images using require.
This is because the images will be treated as esm specifications,
but why is it not necessary when using resource types?
I have consulted a lot of information, including reading a lot of issues, but I haven't found the answer.
Can anyone help me answer this?
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions