Initial commit
This commit is contained in:
17
resources/js/plugins/webfontloader.js
Normal file
17
resources/js/plugins/webfontloader.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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: ['Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap'],
|
||||
},
|
||||
})
|
||||
}
|
||||
export default function () {
|
||||
loadFonts()
|
||||
}
|
||||
Reference in New Issue
Block a user