-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
69 lines (68 loc) · 1.84 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
import { resolve } from 'path';
import { viteStaticCopy } from 'vite-plugin-static-copy'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
meta: [
{ property: 'og:image', content: 'https://govukvue.org//assets/images/gv-opengraph.png'},
{ property: 'og:image:alt', content: 'GOV.UK Vue'},
{ property: 'og:description', content: 'Vue versions of every GOV.UK component'},
{ name: 'description', content: 'GOV.UK Vue provides Vue implementations of every component in the GOV.UK Design System.' },
{ name: 'twitter:card', content: 'summary' },
{ name: 'twitter:title', content: 'GOV.UK Vue' },
{ name: 'twitter:image', content: 'https://govukvue.org/assets/images/gv-twitter.png'},
{ name: 'twitter:image:alt', content: 'GOV.UK Vue crown logo'},
{ name: 'twitter:description', content: 'Vue versions of every GOV.UK component'}
],
htmlAttrs: {
class: 'govuk-template',
lang: 'en-GB'
},
bodyAttrs: {
class: 'govuk-template__body js-enabled govuk-frontend-supported'
},
}
},
components: {
global: true,
dirs: ['~/components','~/.generated-examples']
},
modules: [
'@nuxt/content'
],
vite: {
resolve: {
dedupe: [
'vue'
]
},
plugins: [
viteStaticCopy({
targets: [
{
src: 'node_modules/govuk-frontend/dist/govuk/assets/*',
dest: 'assets'
}
]
})
],
css: {
preprocessorOptions: {
scss: {
quietDeps: true
}
}
}
},
content: {
documentDriven: true,
highlight: {
theme: 'monokai'
}
},
meta: {
title: 'GOV.UK Vue',
}
})