Skip to content

Commit d1a0e78

Browse files
authored
docs: typos in config page (#4073)
1 parent fa63802 commit d1a0e78

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/config/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
}
1616
```
1717

18-
Note Vite supports using ES modules syntax in the config file even if the project is not using native Node ESM via `type: "module"`. In this case the config file is auto pre-processed before load.
18+
Note Vite supports using ES modules syntax in the config file even if the project is not using native Node ESM via `type: "module"`. In this case, the config file is auto pre-processed before load.
1919

2020
You can also explicitly specify a config file to use with the `--config` CLI option (resolved relative to `cwd`):
2121

@@ -38,7 +38,7 @@ const config = {
3838
export default config
3939
```
4040

41-
Alternatively you can use the `defineConfig` helper which should provide intellisense without the need for jsdoc annotations:
41+
Alternatively, you can use the `defineConfig` helper which should provide intellisense without the need for jsdoc annotations:
4242

4343
```js
4444
import { defineConfig } from 'vite'
@@ -88,7 +88,7 @@ export default async ({ command, mode }) => {
8888
- **Type:** `string`
8989
- **Default:** `process.cwd()`
9090

91-
Project root directory (where `index.html` is located). Can be an absolute path, or a path relative from the location of the config file itself.
91+
Project root directory (where `index.html` is located). Can be an absolute path, or a path relative to the location of the config file itself.
9292

9393
See [Project Root](/guide/#index-html-and-project-root) for more details.
9494

@@ -124,7 +124,7 @@ export default async ({ command, mode }) => {
124124

125125
- Replacements are performed only when the match is surrounded by word boundaries (`\b`).
126126

127-
Because it's implemented as straightforward text replacements without any syntax analyzation, we recommend using `define` for CONSTANTS only.
127+
Because it's implemented as straightforward text replacements without any syntax analysis, we recommend using `define` for CONSTANTS only.
128128

129129
For example, `process.env.FOO` and `__APP_VERSION__` are good fits. But `process` or `global` should not be put into this option. Variables can be shimmed or polyfilled instead.
130130

@@ -148,7 +148,7 @@ export default async ({ command, mode }) => {
148148
- **Type:** `string`
149149
- **Default:** `"node_modules/.vite"`
150150

151-
Directory to save cache files. Files in this directory are pre-bundled deps or some other cache files that generated by vite, which can improve the performance. You can use `--force` flag or manually delete the directory to regenerate the cache files. The value can be either an absolute file system path or a path relative to project root.
151+
Directory to save cache files. Files in this directory are pre-bundled deps or some other cache files generated by vite, which can improve the performance. You can use `--force` flag or manually delete the directory to regenerate the cache files. The value can be either an absolute file system path or a path relative to project root.
152152

153153
### resolve.alias
154154

@@ -282,7 +282,7 @@ export default async ({ command, mode }) => {
282282
}
283283
```
284284

285-
By default, ESBuild is applied to `ts`, `jsx` and `tsx` files. You can customize this with `esbuild.include` and `esbuild.exclude`, both of which expects type of `string | RegExp | (string | RegExp)[]`.
285+
By default, ESBuild is applied to `ts`, `jsx` and `tsx` files. You can customize this with `esbuild.include` and `esbuild.exclude`, both of which expect type of `string | RegExp | (string | RegExp)[]`.
286286

287287
In addition, you can also use `esbuild.jsxInject` to automatically inject JSX helper imports for every file transformed by ESBuild:
288288

@@ -632,14 +632,14 @@ createServer()
632632
- **Default:** `false`
633633
- **Related:** [Backend Integration](/guide/backend-integration)
634634

635-
When set to `true`, the build will also generate a `manifest.json` file that contains mapping of non-hashed asset filenames to their hashed versions, which can then be used by a server framework to render the correct asset links.
635+
When set to `true`, the build will also generate a `manifest.json` file that contains a mapping of non-hashed asset filenames to their hashed versions, which can then be used by a server framework to render the correct asset links.
636636

637637
### build.minify
638638

639639
- **Type:** `boolean | 'terser' | 'esbuild'`
640640
- **Default:** `'terser'`
641641

642-
Set to `false` to disable minification, or specify the minifier to use. The default is [Terser](https://github.com/terser/terser) which is slower but produces smaller bundles in most cases. Esbuild minification is significantly faster, but will result in slightly larger bundles.
642+
Set to `false` to disable minification, or specify the minifier to use. The default is [Terser](https://github.com/terser/terser) which is slower but produces smaller bundles in most cases. Esbuild minification is significantly faster but will result in slightly larger bundles.
643643

644644
### build.terserOptions
645645

0 commit comments

Comments
 (0)