A mock plugin for vite.use mockjs. Contribute to vbenjs/vite-plugin-mock development by creating an account on GitHub.
supports the `/api/user/:id` format.* The plugin matches the path through `path-to-regexp`.* @see https://github.com/pillarjs/path-to-regexp*/url:'/api/test',/*** Supported request methods of the interface.* @type string | string[]* @default ['POST','GET']**/method:['GET'...
main .github .husky .vscode packages tests .editorconfig .eslintignore .eslintrc.js .gitignore .prettierignore CHANGELOG.md LICENSE README.md README.zh_CN.md commitlint.config.js package.json pnpm-lock.yaml pnpm-workspace.yaml prettier.config.js tsconfig.es.json tsconfig.jsonBreadcrumbs vite-...
VITE_PUBLIC_PATH: string; VITE_PROXY: [string, string, boolean][]; 0 comments on commit 9084848 Please sign in to comment. Footer © 2024 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do not share my personal information ...
github.com/anncwb/vite-plugin-mock Homepage github.com/anncwb/vite-plugin-mock/tree/master/#readme Weekly Downloads 6 Version 1.0.5 License MIT Unpacked Size 41.6 kB Total Files 9 Issues 58 Last publish 7 months ago Collaborators Tryon RunKit ...
Describe the bug npm init ice icestark-child @vue-materials/icestark-child-app 创建的子应用。本身用vite-plugin-mock 做mock数据,子应用单独可以显示。接入主应用后子应用的mock数据不显示,接口没返回 主应用端口3333 子应用端口3002 Expected behavior 在主应用中
File system based local mock plugin. Contribute to venojs/vite-plugin-file-mock development by creating an account on GitHub.
Contribute to jarlef/vite-plugin-mock-replace development by creating an account on GitHub.
This package does not have a README. Add a README to your package so that users know how to get started. Readme Keywords vite mock hmrPackage Sidebar Install npm i vite-plugin-mock-mod Repository github.com/anncwb/vite-plugin-mock Homepage github.com/anncwb/vite-plugin-mock/tree/master/...
新建了mock文件,mock/index.ts,编写内容,启动项目 "dev": "vite", 这时候项目是启动着的,这个时候去修改 mock/index.ts,控制台不停的报错误, 而且,mock目录下会生成很多文件 This error came from the "onLoad" callback registered here: node_modules/bundle-require/dist/index.cjs:145:10: onLoad({ fil...