-
Notifications
You must be signed in to change notification settings - Fork 28
/
nuxt.config.ts
67 lines (57 loc) · 1.47 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
import { createResolver } from '@nuxt/kit'
const { resolve: resolvePath } = createResolver(import.meta.url)
export default defineNuxtConfig({
extends: ['@nuxt-themes/docus'],
devtools: { enabled: false },
components: [{
dirs: ['~/components'],
level: -1
},
{ path: resolvePath('components/globals'), global: true, prefix: '' },],
modules: [
'nuxt-gtag',
'nuxt-anchorscroll'
],
gtag: {
id: 'G-R87E52EEFR'
},
app: {
head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#00afe4' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' },
],
noscript: [
{ children: 'JavaScript is required' }
],
link: [
{ rel: 'stylesheet', href: '/css/main.css' },
{ rel: 'stylesheet', href: '/css/backToTop.min.css' }
],
script: [
{ src: '/js/jquery.min.js' },
{ src: '/js/backToTop.min.js' },
{ src: '/js/main.js'}
]
},
},
mdc: {
highlight: {
langs: ['html', 'xml', 'css', 'javascript', 'json', 'markdown', 'http']
}
},
experimental: {
viewTransition: true
},
anchorscroll: {
hooks: [
'page:transition:finish',
],
},
compatibilityDate: '2024-12-21',
})
function resolve(arg0: string): string | undefined {
throw new Error("Function not implemented.");
}