Skip to content

Commit

Permalink
Put CSS that has been brought home in /subfont, make sure to add an e…
Browse files Browse the repository at this point in the history
…xtension, and add content hash to the file name
  • Loading branch information
papandreou committed Aug 9, 2018
1 parent eba5cb9 commit 3d0a262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = async ({
new Error(`Pulling down modified stylesheet ${asset.url}`)
);
asset.url =
assetGraph.root + (asset.fileName || `index${asset.defaultExtension}`);
`${assetGraph.root}subfont/${asset.baseName || 'index'}-${asset.md5Hex.slice(0, 10)}${asset.extension || asset.defaultExtension}`;
}
}

Expand Down

0 comments on commit 3d0a262

Please sign in to comment.