Skip to content

mockDevServerPlugin(options)

Vite Plugin Function

Usage

vite.config.ts
ts
import { defineConfig } from 'vite'
import { mockDevServerPlugin } from 'vite-plugin-mock-dev-server'

export default defineConfig({
  plugins: [mockDevServerPlugin()],
})

options

type: MockServerPluginOptions

See pluginConfig

Released under the MIT License