Skip to content

Commit

Permalink
fix(tokens): change the configuration to use an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Gaudin committed Oct 27, 2023
1 parent 10eb100 commit 6f40711
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/tokens/src/style-dictionary/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export const fontsConfig = {
"type": "font"
}
},
"options": {
"fontPathPrefix": "/"
}
}
],
"actions": ["copy_assets"]
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/style-dictionary/format/font-face.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Dictionary, Options, TransformedToken } from "style-dictionary";

export function fontFace ({ dictionary, options }: { dictionary: Dictionary; options: Options }) {
const fontPathPrefix = options.fontPathPrefix || "../";
const fontPathPrefix = options.fontPathPrefix || "";
const tokens = dictionary.allTokens;

// https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src
Expand Down

0 comments on commit 6f40711

Please sign in to comment.