From 8f753f1fd03e3787b5a2145558222bde8ca1562a Mon Sep 17 00:00:00 2001 From: Frederick Fogerty Date: Wed, 19 Aug 2020 17:54:48 +0200 Subject: [PATCH] feat(gatsby-source-url): add another fluid fragment and todo for base64 --- packages/gatsby-source-url/fragments.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/gatsby-source-url/fragments.js b/packages/gatsby-source-url/fragments.js index f96bfffd..c361e3c0 100644 --- a/packages/gatsby-source-url/fragments.js +++ b/packages/gatsby-source-url/fragments.js @@ -1,11 +1,23 @@ import { graphql } from 'gatsby'; +// TODO: add base64 when available export const GatsbySourceImgixFluid = graphql` fragment GatsbySourceImgixFluid on SourceImgixFluid { aspectRatio src + srcWebp srcSet + srcSetWebp + sizes + } +`; + +export const GatsbySourceImgixFluid_noBase64 = graphql` + fragment GatsbySourceImgixFluid_noBase64 on SourceImgixFluid { + aspectRatio + src srcWebp + srcSet srcSetWebp sizes }