• Provides a simple way to mock data.

    Parameters

    Returns Plugin

    a vite plugin

    Example

    import { defineConfig } from 'vite';
    import mockData from 'vite-plugin-mock-data';

    export default defineConfig({
    plugins: [
    mockData({
    mockRoutesDir: './mock'
    })
    ]
    });

Generated using TypeDoc