Skip to content

vite-plugin-mock-data ​

npm package

Mocks API routes on the Vite dev server from a mock directory or inline route config, and can expose file-based routes to the browser for built static pages.

NPM versionNPM DownloadsNode version

Installation ​

bash
npm add vite-plugin-mock-data
bash
pnpm add vite-plugin-mock-data
bash
yarn add vite-plugin-mock-data