Add vuetify and webfontloader plugins
This commit is contained in:
parent
3de0447eba
commit
fa4c9bcaba
10
web/src/plugins/vuetify.js
Normal file
10
web/src/plugins/vuetify.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Styles
|
||||||
|
import '@mdi/font/css/materialdesignicons.css'
|
||||||
|
import 'vuetify/styles'
|
||||||
|
|
||||||
|
// Vuetify
|
||||||
|
import { createVuetify } from 'vuetify'
|
||||||
|
|
||||||
|
export default createVuetify(
|
||||||
|
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
||||||
|
)
|
15
web/src/plugins/webfontloader.js
Normal file
15
web/src/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: {
|
||||||
|
families: ['Roboto:100,300,400,500,700,900&display=swap'],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user