Claptrap-ui/src/plugins/webfontloader.ts

16 lines
360 B
TypeScript
Raw Normal View History

2022-05-21 01:07:31 +02:00
/**
* plugins/webfontloader.js
*
* webfontloader documentation: https://github.com/typekit/webfontloader
*/
export async function loadFonts () {
const webFontLoader = await import(/* webpackChunkName: "webfontloader" */'webfontloader')
webFontLoader.load({
google: {
families: ['Roboto:100,300,400,500,700,900&display=swap'],
},
})
}