-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change how the fonts are imported and bundled
* fix: change how the fonts are imported and bundled Import fonts directly so that rollup is able to recognize them and bundle with the url-plugin as inline resources. By bundling them this way, fonts are resolved and used when setting the loadDefaultFont prop in the ThemeProvider. Update also webpack to recognize the fonts as asset/resource for the styleguide. Add a file transformer for jest and update the config to use it. Remove no more used plugin from dependencies. * docs: use default fonts for docs examples For other components of the documentation (list, title, field description, etc) use the sans-serif. Define styleguide theme config in an external file to make them hot-reloadable * build(deps): reset rollup to v2 Rollup v3 has some breaking changes which require a more in depth investigation Use @rollup/plugin-url instead of rollup-plugin-url refs: CDS-110 (#159)
- Loading branch information
Showing
13 changed files
with
671 additions
and
1,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.