Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYNC] docs: clarify assetsInclude (#4955) #65

Closed
github-actions bot opened this issue Sep 18, 2021 · 0 comments · Fixed by #76
Closed

[SYNC] docs: clarify assetsInclude (#4955) #65

github-actions bot opened this issue Sep 18, 2021 · 0 comments · Fixed by #76
Labels

Comments

@github-actions
Copy link
Contributor

docs: clarify assetsInclude (#4955) (05fae60)


+++ b/docs/config/index.md
@@ -313,7 +313,7 @@ export default defineConfig(async ({ command, mode }) => {
- **Type:** `string | RegExp | (string | RegExp)[]`
- **Related:** [Static Asset Handling](/guide/assets)
-  Specify additional file types to be treated as static assets so that:
+  Specify additional [picomatch patterns](https://github.com/micromatch/picomatch) to be treated as static assets so that:
- They will be excluded from the plugin transform pipeline when referenced from HTML or directly requested over `fetch` or XHR.
@@ -321,6 +321,14 @@ export default defineConfig(async ({ command, mode }) => {
The built-in asset type list can be found [here](https://github.com/vitejs/vite/blob/main/packages/vite/src/node/constants.ts).
+  **Example:**
+
+  ```js
+  export default defineConfig({
+    assetsInclude: ['**/*.gltf']
+  })
+  ```
+
### logLevel
- **Type:** `'info' | 'warn' | 'error' | 'silent'`
@github-actions github-actions bot added the sync label Sep 18, 2021
@Gumball12 Gumball12 mentioned this issue Sep 26, 2021
Gumball12 added a commit that referenced this issue Jan 6, 2022
Gumball12 added a commit that referenced this issue Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants