Skip to content

Commit

Permalink
netlify-headers: Fix query to exclude unloaded assets (for ag 4)
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jun 7, 2018
1 parent 1be7325 commit a91da27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/netlify-headers.js
Original file line number Diff line number Diff line change
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 a91da27

Please sign in to comment.