From a91da2713fd640c706c277656dc2493eca58808f Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Thu, 7 Jun 2018 20:42:35 +0200 Subject: [PATCH] netlify-headers: Fix query to exclude unloaded assets (for ag 4) --- scripts/netlify-headers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/netlify-headers.js b/scripts/netlify-headers.js index c99c868bc1..659c99bb1f 100644 --- a/scripts/netlify-headers.js +++ b/scripts/netlify-headers.js @@ -29,7 +29,11 @@ new AssetGraph({root: 'docs/_dist'}) followRelations: {type: 'HtmlAnchor', crossorigin: false} }) .queue(function(assetGraph) { - const assets = assetGraph.findAssets({type: 'Html', isInline: false}); + const assets = assetGraph.findAssets({ + type: 'Html', + isInline: false, + isLoaded: true + }); const headerMap = {};