Provides a simple way to mock data.
Options
a vite plugin
import { defineConfig } from 'vite';import mockData from 'vite-plugin-mock-data';export default defineConfig({ plugins: [ mockData({ mockRoutesDir: './mock' }) ]}); Copy
import { defineConfig } from 'vite';import mockData from 'vite-plugin-mock-data';export default defineConfig({ plugins: [ mockData({ mockRoutesDir: './mock' }) ]});
Generated using TypeDoc
Provides a simple way to mock data.