From c514d7dc69a711ce224752554a425e6b11161aaf Mon Sep 17 00:00:00 2001 From: "Jocelyn Badgley (Twipped)" Date: Thu, 27 Feb 2020 20:42:03 -0800 Subject: [PATCH] Fix webready assets --- gulp/content/public.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulp/content/public.js b/gulp/content/public.js index dee7382..6eff3b5 100644 --- a/gulp/content/public.js +++ b/gulp/content/public.js @@ -38,6 +38,8 @@ module.exports = exports = async function loadPublicFiles () { [KIND.ASSET]: subassets, } = groupBy(subset, 'kind'); + const webready = subassets && keyBy(subassets.map((a) => a.webready()), 'name'); + return { all: subset, get titlecard () { return getTitlecard; }, @@ -45,7 +47,7 @@ module.exports = exports = async function loadPublicFiles () { return subpages; }, get assets () { - return keyBy(subassets, 'name'); + return webready; }, }; }