File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ Vite 插件也可以提供钩子来服务于特定的 Vite 目标。这些钩子
310310- ** 类型:** ` (server: { middlewares: Connect.Server, httpServer: http.Server }) => (() => void) | void | Promise<(() => void) | void> `
311311- ** 种类:** ` async ` , ` sequential `
312312
313- 与 [ ` configureServer ` ] ( /guide/api-plugin.html#configureserver ) 相同但是作为预览服务器。。 它提供了一个 [ connect] ( https://github.com/senchalabs/connect ) 服务器实例及其底层的 [ http server] ( https://nodejs.org/api/http.html ) 。与 ` configureServer ` 类似,` configurePreviewServer ` 这个钩子也是在其他中间件安装前被调用的。如果你想要在其他中间件 ** 之后** 安装一个插件,你可以从 ` configurePreviewServer ` 返回一个函数,它将会在内部中间件被安装之后再调用:
313+ 与 [ ` configureServer ` ] ( /guide/api-plugin.html#configureserver ) 相同但是作为预览服务器。它提供了一个 [ connect] ( https://github.com/senchalabs/connect ) 服务器实例及其底层的 [ http server] ( https://nodejs.org/api/http.html ) 。与 ` configureServer ` 类似,` configurePreviewServer ` 这个钩子也是在其他中间件安装前被调用的。如果你想要在其他中间件 ** 之后** 安装一个插件,你可以从 ` configurePreviewServer ` 返回一个函数,它将会在内部中间件被安装之后再调用:
314314
315315 ``` js
316316 const myPlugin = () => ({
You can’t perform that action at this time.
0 commit comments