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
Copy file name to clipboardexpand all lines: docs/config/build-options.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,10 @@ Specify the directory to nest generated assets under (relative to `build.outDir`
53
53
54
54
Imported or referenced assets that are smaller than this threshold will be inlined as base64 URLs to avoid extra http requests. Set to `0` to disable inlining altogether.
55
55
56
+
Git LFS placeholders are automatically excluded from inlining because they do not contain the content of the file they represent.
57
+
56
58
::: tip Note
57
-
If you specify `build.lib`, `build.assetsInlineLimit` will be ignored and assets will always be inlined, regardless of file size.
59
+
If you specify `build.lib`, `build.assetsInlineLimit` will be ignored and assets will always be inlined, regardless of file size or being a Git LFS placeholder.
Copy file name to clipboardexpand all lines: docs/guide/assets.md
+2
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ The behavior is similar to webpack's `file-loader`. The difference is that the i
26
26
27
27
- Assets smaller in bytes than the [`assetsInlineLimit` option](/config/build-options.md#build-assetsinlinelimit) will be inlined as base64 data URLs.
28
28
29
+
- Git LFS placeholders are automatically excluded from inlining because they do not contain the content of the file they represent. To get inlining, make sure to download the file contents via Git LFS before building.
30
+
29
31
### Explicit URL Imports
30
32
31
33
Assets that are not included in the internal list or in `assetsInclude`, can be explicitly imported as a URL using the `?url` suffix. This is useful, for example, to import [Houdini Paint Worklets](https://houdini.how/usage).
0 commit comments