Skip to content

Commit

Permalink
docs: unify project name (vitejs#4876)
Browse files Browse the repository at this point in the history
Co-authored-by: de_yi <de>
  • Loading branch information
Y80 authored and aleclarson committed Nov 8, 2021
1 parent 148814b commit e84189e
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 e84189e

Please sign in to comment.