-
Notifications
You must be signed in to change notification settings - Fork 581
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
feat: JsDoc supports preview #635
Conversation
有点屌啊! |
有没有办法直接读svg来预览,data-url 需要多维护一层,容易脱钩 |
貌似不太行,不过这个 base64 塞进来感觉文件会变大很多🤔 |
vscode 插件,自己根据 icon 名,去渲染一个 html 显示出来? |
话说 jsDoc 在 ws 里面能不能正常渲染啊🤔 |
https://www.npmjs.com/package/lucide-react 整体 install size 是 22MB,看上去还好。 |
7.55 MB => 11.3MB 感觉能接受 |
|
Kapture.2024-03-22.at.11.18.27.mp4 |
或者可以在 jsDoc 中用 cdn 显示svg #635 (comment) 🤔 |
大多数用户不会在意 node_modules 在本地占用,生产环境也不会把注释构建进去。 |
先合了,有问题再说。 |
今天更新完依赖用的时候就看到了这个 feature,赶紧来看看是哪位大佬的杰作。牛逼的👍 |
参考 lucide 在 jsdoc 中添加 svg preview:
效果图: