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

复制火狐浏览器开发者工具的 GET 黏贴会删掉一整行 #53

Open
linonetwo opened this issue Jun 13, 2023 · 0 comments
Open

Comments

@linonetwo
Copy link
Contributor

复制这个
截屏2023-06-13 15 12 37

在这里会黏贴为


GET | http://localhost:6006/src/stories/assets/comments.svg
-- | --


在 slate-write 里,黏贴到

* 在服务端可以正常加载模块并拿到导出的内容
* 需要验证在浏览器端是否可以加载,及经过其他打包工具打包后的前端项目是否能够加载
** fetch 远端的 mjd 需要服务端开启 cors,但是我[ext[常用的 serve 这个功能有毛病|https://github.com/vercel/serve/issues/771]]
** 先手动复制到 storybook 的 asset 里
** 但 storybook 加载静态资源的方式只有 import 这一种,实际找不到带有 `/static` 的 URL 路径
** 其实是类似 `/src/stories/assets/comments.svg` 这样的路径,[[黏贴到这里]]

会删掉一整行列表项

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

1 participant