modified: main_dc/yalarba/easySite/easySite/nuxt.config.ts
config for fonts
This commit is contained in:
@@ -19,6 +19,27 @@ export default defineNuxtConfig({
|
||||
'~/assets/css/main.css'
|
||||
],
|
||||
|
||||
// Опционально: для оптимизации шрифтов
|
||||
app: {
|
||||
head: {
|
||||
link: [
|
||||
{
|
||||
rel: 'preconnect',
|
||||
href: 'https://fonts.googleapis.com'
|
||||
},
|
||||
{
|
||||
rel: 'preconnect',
|
||||
href: 'https://fonts.gstatic.com',
|
||||
crossorigin: ''
|
||||
},
|
||||
{
|
||||
rel: 'stylesheet',
|
||||
href: 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// Настройки для работы за прокси
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
|
||||
Reference in New Issue
Block a user