【发布时间】:2020-09-05 14:42:39
【问题描述】:
我想在我的一个页面中将 GraphQL Playground 呈现为 React component,但由于 webpack 中缺少 file-loader 而失败。有没有办法在 docs 中解决这个问题,还是我需要使用新的 webpack 配置创建新插件?
将 Playground 和 Docusaurus 完全集成是个好主意吗?
感谢您的想法...
【问题讨论】:
-
Docusaurus 似乎也弄乱了游乐场组件的 css...
-
@EthanSK 没错。事实证明,在 Docusaurus 中渲染
<Playground />需要花费太多精力,我选择在<iframe>中加载它并使用postMessage浏览器 API 进行通信。
标签: graphql docusaurus graphql-playground