8000 "it fallbacks to" vs "it falls back to" (#221) · rspack-contrib/rspack-vue-loader@1a7c96c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a7c96c

Browse files
marktinsleyyyx990803
authored andcommitted
"it fallbacks to" vs "it falls back to" (vuejs#221)
1 parent 92c6a69 commit 1a7c96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/configurations/asset-url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For example, `url(image.png)` will be translated into `require('./image.png')`.
66

77
1. `fi 5C77 le-loader` allows you to designate where to copy and place the asset file, and how to name it using version hashes. The best part though, is that you can use relative URLs based on the folder structure of your source files, and Webpack will auto-rewrite them into different URLs in the bundled files based on the configuration.
88

9-
2. `url-loader` allows you to conditionally inline a file as base-64 data URL if they are smaller than a given threshold. This can reduce the amount of HTTP requests for trivial files. If the file is larger than the threshold, it automatically fallbacks to `file-loader`.
9+
2. `url-loader` allows you to conditionally inline a file as base-64 data URL if they are smaller than a given threshold. This can reduce the amount of HTTP requests for trivial files. If the file is larger than the threshold, it automatically falls back to `file-loader`.
1010

1111
Here's an example Webpack config that handles `.png`, `jpg` and `.gif` files, and inlining any file smaller than 10kb as base64 data URL:
1212

0 commit comments

Comments
 (0)
0