modified: main_dc/yalarba/easySite/easySite/nuxt.config.ts
change nuxt.config.ts for remove in build stage reqest to fonts
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: '2025-07-15',
|
compatibilityDate: '2025-07-15',
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: false },
|
||||||
|
|
||||||
// Отключаем аналитику шрифтов
|
// Отключаем аналитику шрифтов
|
||||||
future: {
|
future: {
|
||||||
compatibilityVersion: 4
|
compatibilityVersion: 4
|
||||||
},
|
},
|
||||||
|
|
||||||
|
features: {
|
||||||
|
// Отключаем inlineStyles для шрифтов
|
||||||
|
inlineStyles: false
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxt/image',
|
'@nuxt/image',
|
||||||
@@ -25,27 +30,6 @@ export default defineNuxtConfig({
|
|||||||
'~/assets/css/main.css'
|
'~/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: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
|
|||||||
Reference in New Issue
Block a user