Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: support for vite2.0 #183

Open
wulisensen opened this issue Mar 4, 2021 · 2 comments
Open

Feature: support for vite2.0 #183

wulisensen opened this issue Mar 4, 2021 · 2 comments

Comments

@wulisensen
Copy link

希望能支持vite2.0

@jaywcjlove
Copy link
Owner

@wulisensen 我不太明白需要如何兼容

使用下面方法启动一个服务 vite 也是可以用的吧

{
  "name": "base-example",
  "scripts": {
+    "api": "mocker ./mocker"
  },
  "devDependencies": {
+    "mocker-api": "2.8.2"
  },
+  "mocker": {
+    "port": 7788
+  },
  "license": "MIT"
}

@avin
Copy link

avin commented Jan 16, 2023

@wulisensen Made mocker lib compatable with Vite https://github.com/avin/fake-api-middleware
Mocks structure is very similar to mocker-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants