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

终端能否提供一个类似vite的快捷键操作 #1674

Closed
thinkasany opened this issue Oct 31, 2024 · 2 comments
Closed

终端能否提供一个类似vite的快捷键操作 #1674

thinkasany opened this issue Oct 31, 2024 · 2 comments
Labels
later low Priority

Comments

@thinkasany
Copy link

监听 h 出现 帮助面板,然后出现其他的快捷键。

有时候open in browser / clear console / show server url 确实很实用

image

image

@stormslowly stormslowly added the later low Priority label Nov 6, 2024
@sorrycc
Copy link
Member

sorrycc commented Dec 24, 2024

如果要做,也应在框架里做。放构建器里做不合适,构建器应只提供构建的原子能力。

@sorrycc sorrycc closed this as completed Dec 24, 2024
@thinkasany
Copy link
Author

佬的意思是说 放到 umi 这种框架里面去吗,但是如果只用了 mako,并不是 umi 搭建的而是 create react app or next 创建的呢。

但是像 vite 这种,使用 vite 构建的生态直接都能使用了,会很便捷吧,就算不用 某固定框架。写 element-plus、vitest、vitepress这些都可以。 就是确实 mako 执行久了 No changes Checking... 会变得特别特别长,如果忘记域名也挺麻烦,长了想整理也不是很方便,可能就需要重启。

image

https://github.com/vitejs/vite/blob/1aa434e8017012bf0939b2ff1a3a66b4bd12b76d/packages/vite/src/node/shortcuts.ts#L16

image

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

No branches or pull requests

3 participants