forked from apte4ka112/ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
111 lines (109 loc) · 2.64 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// https://nuxt.com/docs/api/configuration/nuxt-config
import { defineNuxtConfig } from 'nuxt/config';
export default defineNuxtConfig({
compatibilityDate: '2024-09-20',
ssr: true,
telemetry: false,
typescript: {
strict: true
},
srcDir: 'client',
dir: {
app: 'client'
},
future: {
compatibilityVersion: 4,
},
features: {
devLogs: true
},
experimental: {
headNext: true,
typedPages: true,
appManifest: true,
sharedPrerenderData: true,
scanPageMeta: true,
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
scripts: {
globals: []
},
site: {
name: 'Ext Team'
},
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
htmlAttrs: { lang: 'ru' },
meta: [
{name: 'msapplication-TileColor', content: '#0056f9'},
{name: 'theme-color', content: '#ffffff'},
],
link: [
{rel: 'manifest', href: '\/site.webmanifest'},
{href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css', rel: 'stylesheet'}
],
},
pageTransition: { name: 'page', mode: 'out-in' }
},
css: [
'@@/node_modules/normalize.css/normalize.css',
'@/assets/styles/variables.css',
],
postcss: {
plugins: {
autoprefixer: {},
'postcss-import': {},
'postcss-nested': {},
'@csstools/postcss-global-data': {
files: ['./client/assets/styles/media-queries.css']
},
'postcss-preset-env': {
stage: 2,
features: {
'nesting-rules': true,
'custom-media-queries': true,
'custom-selectors': true,
},
}
}
},
components: [
{
path: '~/components',
pathPrefix: false,
}
],
plugins: [],
modules: [
'nuxt-icons',
'@pinia/nuxt',
'@nuxt/fonts',
'@vueuse/nuxt',
'@nuxt/devtools',
"@nuxt/scripts"
],
vite: {
plugins: [],
build: {
//cssMinify: 'lightningcss'
},
},
nitro: {
compressPublicAssets: true,
},
fonts: {
families: [
{ name: 'Montserrat', provider: 'google' },
],
experimental: {
processCSSVariables: true,
}
},
})