Skip to content

Commit

Permalink
netlify-headers: Skip unloaded assets when extracting headers
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou authored and boneskull committed Dec 4, 2018
1 parent 4dc322f commit 6a32258
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/netlify-headers.js
Expand Up @@ -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 = {};

Expand Down

0 comments on commit 6a32258

Please sign in to comment.