Skip to content

Commit

Permalink
Remove assetgraph JavascriptStaticUrl weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Dec 2, 2017
1 parent 0622259 commit 9b565eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/subfont
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ assetGraph
inlineCss: inlineCss,
fontDisplay: fontDisplay
})
.queue(function omitFunctionCalls(assetGraph) {
assetGraph.findRelations({type: 'JavaScriptStaticUrl', to: {isLoaded: true}}).forEach(function (relation) {
relation.omitFunctionCall();
});
})
.if(rootUrl.indexOf('file:') === -1)
.queue(function rootRelativeRelations(assetGraph) {
assetGraph.findRelations().forEach(function (relation) {
Expand Down

0 comments on commit 9b565eb

Please sign in to comment.