【问题标题】:How can I take the .graphql files in my src folder and bundle them up to one schema.graphql file to my build folder如何获取 src 文件夹中的 .graphql 文件并将它们捆绑到一个 schema.graphql 文件到我的构建文件夹
【发布时间】:2019-03-26 06:50:20
【问题描述】:

我正在使用 Vesper,它需要 .graphql 文件的路径而不是可导入架构。我还在打字稿中编写,所以所有内容都被编译到一个构建文件夹中,这意味着我必须在编译后手动将所有 .graphql 文件拖到构建文件夹中,或者我必须从我的 src 文件夹中引用这些文件,它可以工作但只是感觉错了。

有没有人知道在编译期间将所有 .graphql 文件捆绑到 build 文件夹中的单个 schema.graphql 文件的方法或工具?

【问题讨论】:

    标签: typescript compilation schema graphql


    【解决方案1】:

    我解决这个问题的方法是指定./**/*.graphql 作为路径。

    【讨论】:

      猜你喜欢
      • 2016-05-08
      • 2020-07-01
      • 1970-01-01
      • 2012-12-01
      • 2019-12-19
      • 2021-05-26
      • 2022-08-21
      • 1970-01-01
      • 2019-07-24
      相关资源
      最近更新 更多