Skip to content

Commit

Permalink
docs: unify project name (#4876)
Browse files Browse the repository at this point in the history
Co-authored-by: de_yi <de>
  • Loading branch information
Y80 committed Sep 8, 2021
1 parent 702d503 commit 780ddcf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/config/index.md
Expand Up @@ -487,7 +487,7 @@ const { createServer: createViteServer } = require('vite')
async function createServer() {
const app = express()

// Create vite server in middleware mode.
// Create Vite server in middleware mode.
const vite = await createViteServer({
server: { middlewareMode: 'ssr' }
})
Expand Down Expand Up @@ -704,7 +704,7 @@ createServer()

By default, Vite will crawl your index.html to detect dependencies that need to be pre-bundled. If build.rollupOptions.input is specified, Vite will crawl those entry points instead.

If neither of these fit your needs, you can specify custom entries using this option - the value should be a [fast-glob pattern](https://github.com/mrmlnc/fast-glob#basic-syntax) or array of patterns that are relative from vite project root. This will overwrite default entries inference.
If neither of these fit your needs, you can specify custom entries using this option - the value should be a [fast-glob pattern](https://github.com/mrmlnc/fast-glob#basic-syntax) or array of patterns that are relative from Vite project root. This will overwrite default entries inference.

### optimizeDeps.exclude

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/api-javascript.md
Expand Up @@ -40,7 +40,7 @@ The `InlineConfig` interface extends `UserConfig` with additional properties:
```ts
interface ViteDevServer {
/**
* The resolved vite config object.
* The resolved Vite config object.
*/
config: ResolvedConfig
/**
Expand Down Expand Up @@ -84,7 +84,7 @@ interface ViteDevServer {
options?: TransformOptions
): Promise<TransformResult | null>
/**
* Apply vite built-in HTML transforms and any plugin HTML transforms.
* Apply Vite built-in HTML transforms and any plugin HTML transforms.
*/
transformIndexHtml(url: string, html: string): Promise<string>
/**
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/build.md
Expand Up @@ -4,7 +4,7 @@ When it is time to deploy your app for production, simply run the `vite build` c

## Browser Compatibility

The production bundle assumes support for modern JavaScript. By default, vite targets browsers which support the [native ESM script tag](https://caniuse.com/es6-module) and [native ESM dynamic import](https://caniuse.com/es6-module-dynamic-import). As a reference, vite uses this [browserslist](https://github.com/browserslist/browserslist) query:
The production bundle assumes support for modern JavaScript. By default, Vite targets browsers which support the [native ESM script tag](https://caniuse.com/es6-module) and [native ESM dynamic import](https://caniuse.com/es6-module-dynamic-import). As a reference, Vite uses this [browserslist](https://github.com/browserslist/browserslist) query:

```
defaults and supports es6-module and supports es6-module-dynamic-import, not opera > 0, not samsung > 0, not and_qq > 0
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/index.md
Expand Up @@ -133,7 +133,7 @@ yarn build
yarn link
```

Then go to your vite based project and run `yarn link vite`. Now restart the development server (`yarn dev`) to ride on the bleeding edge!
Then go to your Vite based project and run `yarn link vite`. Now restart the development server (`yarn dev`) to ride on the bleeding edge!

## Community

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/ssr.md
Expand Up @@ -73,7 +73,7 @@ const { createServer: createViteServer } = require('vite')
async function createServer() {
const app = express()

// Create vite server in middleware mode. This disables Vite's own HTML
// Create Vite server in middleware mode. This disables Vite's own HTML
// serving logic and let the parent server take control.
//
// If you want to use Vite's own HTML serving logic (using Vite as
Expand Down Expand Up @@ -109,7 +109,7 @@ app.use('*', async (req, res) => {
'utf-8'
)

// 2. Apply vite HTML transforms. This injects the vite HMR client, and
// 2. Apply Vite HTML transforms. This injects the Vite HMR client, and
// also applies HTML transforms from Vite plugins, e.g. global preambles
// from @vitejs/plugin-react-refresh
template = await vite.transformIndexHtml(url, template)
Expand All @@ -130,7 +130,7 @@ app.use('*', async (req, res) => {
// 6. Send the rendered HTML back.
res.status(200).set({ 'Content-Type': 'text/html' }).end(html)
} catch (e) {
// If an error is caught, let vite fix the stracktrace so it maps back to
// If an error is caught, let Vite fix the stracktrace so it maps back to
// your actual source code.
vite.ssrFixStacktrace(e)
console.error(e)
Expand Down

0 comments on commit 780ddcf

Please sign in to comment.