Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change how the fonts are imported and bundled #159

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

beawar
Copy link
Contributor

@beawar beawar commented Jan 11, 2023

fix: change how the fonts are imported and bundled
730fb0e
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.

refs: CDS-110

docs: use default fonts for docs examples
160e6b0
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

refs: CDS-110

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.

refs: CDS-110
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

refs: CDS-110
@beawar beawar changed the title Cds 110 improve font bundling fix: change how the fonts are imported and bundled Jan 11, 2023
nubsthead
nubsthead previously approved these changes Jan 12, 2023
@beawar beawar marked this pull request as draft January 12, 2023 11:31
@beawar
Copy link
Contributor Author

beawar commented Jan 12, 2023

There is something wrong at runtime, back to draft

@beawar beawar requested a review from nubsthead January 12, 2023 11:31
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
@beawar beawar marked this pull request as ready for review January 12, 2023 13:32
@beawar beawar merged commit 458519c into devel Jan 17, 2023
@beawar beawar deleted the CDS-110-improve-font-bundling branch January 17, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants