Socket
Book a DemoInstallSign in
Socket

vite-plugin-es6-mock

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-es6-mock

vite mock data

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-es6-mock

Support vite mock data, use es6-mock to mock data.

Install

Install with npm:

$ npm install --save-dev vite-plugin-es6-mock

Uses

Config vite.config.ts

// es6-mock config default param: { dir: './mock', path: '/mock' }
import vitePluginMock from 'vite-plugin-es6-mock';

export default defineConfig({
  plugins: [vitePluginMock()]
});
// es6-mock config dir and path
import vitePluginMock from 'vite-plugin-es6-mock';

export default defineConfig({
  plugins: [vitePluginMock({dir: './mockjs', path: '/mockjs'})]
});

Keywords

vite

FAQs

Package last updated on 11 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts