initial commit
This commit is contained in:
15
resources/js/plugins/webfontloader.js
Normal file
15
resources/js/plugins/webfontloader.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* plugins/webfontloader.js
|
||||
*
|
||||
* webfontloader documentation: https://github.com/typekit/webfontloader
|
||||
*/
|
||||
export async function loadFonts() {
|
||||
const webFontLoader = await import(/* webpackChunkName: "webfontloader" */ 'webfontloader')
|
||||
|
||||
webFontLoader.load({
|
||||
google: {
|
||||
api: 'https://fonts.googleapis.com/css2',
|
||||
families: ['Public+Sans:wght@300;400;500;600;700&display=swap'],
|
||||
},
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user