-
Notifications
You must be signed in to change notification settings - Fork 97
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
修改mock文件,开发服务确实提示文件发生改变了,但是重新请求接口,内容和日志打印都没有发生变化 #36
Comments
一样,修改mock.ts文件,需要重启服务,才能生效(vite-plugin-mock 版本为 2.9.1) |
没有人帮忙看看么? |
啊?大佬为什么将issue关啦? |
尝试升级2.9.3 |
还是不行嘞,改了之后还是要重启才能生效 |
@anncwb 老板我知道为啥开发调试能行,而打包后不能watch文件变化了。
然后 大佬,求解决呀。 |
我找到解决方法了,将 tsup 的 target 设置为 |
老哥,是怎么处理的呢?直接在项目里改,然后重新打包吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RT
使用示例里面的 ts-example ,安装最新版的 vite-plugin-mock 版本为 2.9.1。
必须要重新启动开发服务后,修改才生效
补充说明,后来实验了一下:
import { viteMockServe } from 'vite-plugin-mock'
这样的更新失效
但是使用本地未打包版本的就没问题
import { viteMockServe } from '../../src';
大佬,这个可能是什么原因啊
The text was updated successfully, but these errors were encountered: