mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 23:36:15 -04:00
feat(font): optimized google font import
This commit is contained in:
parent
baf98c8d67
commit
0078af00a6
3 changed files with 252 additions and 4 deletions
|
@ -38,7 +38,8 @@ export default {
|
|||
// https://go.nuxtjs.dev/vuetify
|
||||
'@nuxtjs/vuetify',
|
||||
// '@nuxtjs/router-extras'
|
||||
'~/buildModules/tool-config'
|
||||
'~/buildModules/tool-config',
|
||||
'@nuxtjs/google-fonts'
|
||||
],
|
||||
|
||||
// Modules (https://go.nuxtjs.dev/config-modules)
|
||||
|
@ -50,8 +51,6 @@ export default {
|
|||
'@nuxtjs/svg',
|
||||
'nuxt-i18n',
|
||||
'@nuxtjs/markdownit'
|
||||
// '~/buildModules/tool-config'
|
||||
|
||||
],
|
||||
|
||||
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
|
||||
|
@ -59,6 +58,9 @@ export default {
|
|||
|
||||
// Vuetify module configuration (https://go.nuxtjs.dev/config-vuetify)
|
||||
vuetify: {
|
||||
defaultAssets: {
|
||||
icons: 'mdi'
|
||||
},
|
||||
icons: {
|
||||
iconfont: 'mdi'
|
||||
},
|
||||
|
@ -102,5 +104,17 @@ export default {
|
|||
extractCSS: true
|
||||
},
|
||||
|
||||
router: {}
|
||||
router: {},
|
||||
|
||||
googleFonts: {
|
||||
display: 'swap',
|
||||
prefetch: true,
|
||||
preconnect: true,
|
||||
preload: true,
|
||||
families: {
|
||||
Roboto: {
|
||||
wght: [300, 400, 500, 700, 900]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue