P
P
pabadm2020-07-14 18:23:37
Node.js
pabadm, 2020-07-14 18:23:37

Why specify a url-loader limit?

In general, as I understand it: file-loader uploads files to a separate folder, and they are loaded on the site when they enter.
url-loader encodes files to be used as a url string (roughly speaking). Thus, only those files that are directly needed at the moment are loaded, so that fewer resources are wasted.
But that's why it is written everywhere that he needs to set a limit (mainly 10,000 bytes) in order to upload it as a file when it is exceeded. Also, the file will be loaded on login, right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twolegs, 2020-07-14
@pabadm

base64 content will be loaded with your scripts, and files as needed.
Essentially, a url-loader is needed to reduce the loading time of small files, but if there is too much content inlined in url(), your bundle will become too heavy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question