【文件属性】:
文件名称:gridsome-source-sanity:Gridsome 的 Sanity 源插件
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-29 21:44:25
static-site-generator gridsome gridsome-source JavaScript
gridsome-source-sanity
源代码。 需要 Gridsome 0.7.1 或更高版本。
目录
基本用法
npm install gridsome-source-sanity
# or
yarn add gridsome-source-sanity
部署 GraphQL 架构
此源插件仅在您为项目和数据集发布时才有效。 它将使用 GraphQL API 的架构定义为您的架构类型设置适当的字段。
~ /yourSanityProjectFolder > sanity graphql deploy
当您更改了 Sanity 的架构时,请记住重新部署 GraphQL API。
插件配置
module . exports = {
plugins : [
{
use : 'gridsome-source-sanity' ,
options
【文件预览】:
gridsome-source-sanity-master
----.eslintrc(165B)
----src()
--------debug.js(65B)
--------resolveReferences.js(885B)
--------handleListenerEvent.js(3KB)
--------index.js(12KB)
--------remoteGraphQLSchema.js(799B)
--------draftHandlers.js(884B)
----README.md(5KB)
----.gitignore(53B)
----CHANGELOG.md(0B)
----package-lock.json(58KB)
----package.json(1KB)