Skip to content

Commit

Permalink
Don't attempt to bring home CSS that hasn't been loaded.
Browse files Browse the repository at this point in the history
Bad fallback surfaced by #43
  • Loading branch information
papandreou committed Aug 9, 2018
1 parent b5b9b13 commit eba5cb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/subfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ module.exports = async ({
for (const asset of assetGraph.findAssets({
isDirty: true,
isInline: false,
isLoaded: true,
type: 'Css'
})) {
if (!asset.url.startsWith(assetGraph.root)) {
Expand Down

0 comments on commit eba5cb9

Please sign in to comment.