Load Roboto font locally from /public/fonts/roboto/ and update Nuxt configuration to remove external font links
This commit is contained in:
@@ -7,20 +7,16 @@ export default defineNuxtConfig({
|
|||||||
// App configuration
|
// App configuration
|
||||||
app: {
|
app: {
|
||||||
head: {
|
head: {
|
||||||
|
// Roboto font is now loaded locally from /public/fonts/roboto/
|
||||||
|
// See @font-face declarations in assets/css/tailwind.css
|
||||||
link: [
|
link: [
|
||||||
{
|
{
|
||||||
rel: 'preconnect',
|
rel: 'preload',
|
||||||
href: 'https://fonts.googleapis.com',
|
as: 'font',
|
||||||
},
|
type: 'font/woff2',
|
||||||
{
|
href: '/fonts/roboto/Roboto-VariableFont-latin.woff2',
|
||||||
rel: 'preconnect',
|
|
||||||
href: 'https://fonts.gstatic.com',
|
|
||||||
crossorigin: 'anonymous',
|
crossorigin: 'anonymous',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
rel: 'stylesheet',
|
|
||||||
href: 'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user