Skip to content

Commit

Permalink
task: removes unneeded font formats
Browse files Browse the repository at this point in the history
  • Loading branch information
skibinska committed Jun 26, 2024
1 parent 7a2f769 commit cf681a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utils/formats/formatFontFace.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @param options
* @returns {*}
*
* @see @see {@link https://github.com/amzn/style-dictionary/blob/main/examples/advanced/font-face-rules/sd.config.js#L18}
* @see {@link https://github.com/amzn/style-dictionary/blob/main/examples/advanced/font-face-rules/sd.config.js#L18}
*/
export const formatFontFace = (allTokens, options) => {
const fontPathPrefix = options.fontPathPrefix || '../';
Expand All @@ -13,10 +13,6 @@ export const formatFontFace = (allTokens, options) => {
const formatsMap = {
'woff2': 'woff2',
'woff': 'woff',
'ttf': 'truetype',
'otf': 'opentype',
'svg': 'svg',
'eot': 'embedded-opentype'
};

return allTokens.reduce((fontList, prop) => {
Expand Down

0 comments on commit cf681a8

Please sign in to comment.