You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+15-1
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,12 @@ module.exports = {
56
56
|:--:|:--:|:-----:|:----------|
57
57
|**`limit`**|`{Number}`|`undefined`|Byte limit to inline files as Data URL|
58
58
|**`mimetype`**|`{String}`|`extname`|Specify MIME type for the file (Otherwise it's inferred from the file extension)|
59
+
|**`fallback`**|`{String}`|`file-loader`|Specify `loader` for the file when file is greater than the limit (in bytes)|
59
60
60
61
### `limit`
61
62
62
-
If the file is greater than the limit (in bytes) the [`file-loader`](https://github.com/webpack-contrib/file-loader) is used and all query parameters are passed to it.
63
+
If the file is greater than the limit (in bytes) the [`file-loader`](https://github.com/webpack-contrib/file-loader) is used by default and all query parameters are passed to it.
64
+
You can use other loader using `fallback` option.
63
65
64
66
The limit can be specified via loader options and defaults to no limit.
65
67
@@ -87,6 +89,18 @@ Set the MIME type for the file. If unspecified the file extensions will be used
0 commit comments