[Docs] Misunderstanding description of build.assetsInlineLimit
#3643
Labels
documentation
Improvements or additions to documentation
p1-chore
Doesn't change code behavior (priority)
Describe the bug
As described in documentation:
vite/docs/config/index.md
Lines 571 to 573 in 8b4075d
However, when look into source code:
vite/packages/vite/src/node/plugins/asset.ts
Lines 210 to 214 in 8b4075d
The code actually means "
build.assetsInlineLimit
will be ignored if you specifybuild.lib
, and ONLY IN THIS CONDITION assets will always be inlined, regardless of file size".Hence, the description in documentation is a misunderstanding, the order of the sentence should be corrected.
If you specify
build.lib
,build.assetsInlineLimit
will be ignored and assets will always be inlined, regardless of file size.Reproduction
https://vitejs.dev/config/#build-assetsinlinelimit
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: