Edit this page
createDevMiddleware()
Create server middleware for development with HMR and lazy transpiling.
See usage example for how to use it.
Vite types:
- InlineConfig types the
viteConfig
option. - ResolvedConfig types the
viteConfig
return value. createDevMiddleware()
wraps Vite'screateServer()
.devMiddleware
is aConnect
middleware which is provided by Vite, see also #2081 - Interoperable createDevMiddleware that also works with Web Standards.