From e2b597de0ef14598901703f5aa52f8c962007d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E6=A0=BC?= <40968928+dogledogle@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:52:23 +0800 Subject: [PATCH] docs(config): fix wording and terminology (#23397) --- docs/config/build-options.md | 4 ++-- docs/config/index.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/config/build-options.md b/docs/config/build-options.md index 19ec97db743b8b..40049e20f5385a 100644 --- a/docs/config/build-options.md +++ b/docs/config/build-options.md @@ -86,7 +86,7 @@ Specify the output directory (relative to [project root](/guide/#index-html-and- - **Type:** `string` - **Default:** `assets` -Specify the directory to nest generated assets under (relative to `build.outDir`. This is not used in [Library Mode](/guide/build#library-mode)). +Specify the directory to nest generated assets under (relative to `build.outDir`). This is not used in [Library Mode](/guide/build#library-mode). ## build.assetsInlineLimit @@ -127,7 +127,7 @@ When `build.cssMinify` is `'lightningcss'` (the default), this option takes prec It should only be used when you are targeting a non-mainstream browser. One example is Android WeChat WebView, which supports most modern JavaScript features but not the [`#RGBA` hexadecimal color notation in CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb_colors). -In this case, you need to set `build.cssTarget` to `chrome61` to prevent vite from transforming `rgba()` colors into `#RGBA` hexadecimal notations. +In this case, you need to set `build.cssTarget` to `chrome61` to prevent Vite from transforming `rgba()` colors into `#RGBA` hexadecimal notations. ## build.cssMinify diff --git a/docs/config/index.md b/docs/config/index.md index 56a2dfb6330386..33e7f7bbebe2dd 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -30,7 +30,7 @@ By default, Vite uses [Rolldown](https://rolldown.rs/) to bundle the config into ## Config Intellisense -Since Vite ships with TypeScript typings, you can leverage your IDE's intellisense with jsdoc type hints: +Since Vite ships with TypeScript typings, you can leverage your IDE's intellisense with JSDoc type hints: ```js /** @type {import('vite').UserConfig} */ @@ -39,7 +39,7 @@ export default { } ``` -Alternatively, you can use the `defineConfig` helper which should provide intellisense without the need for jsdoc annotations: +Alternatively, you can use the `defineConfig` helper which should provide intellisense without the need for JSDoc annotations: ```js import { defineConfig } from 'vite'