-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
46 lines (45 loc) · 1.16 KB
/
nuxt.config.js
File metadata and controls
46 lines (45 loc) · 1.16 KB
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
export default {
telemetry: false,
ssr: false,
target: 'static',
head: {
title: 'Project Heartcode 2020',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{hid: 'og:title', name: 'og:title', content: 'Project Heartcode 2020'},
{hid: 'og:description', name: 'og:description', content: process.env.npm_package_description || ''},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''},
],
link: [
{rel: 'icon', type: 'image/png', href: '/favicon.png'},
]
},
tailwindcss: {
cssPath: '~/assets/css/tailwind.less',
},
plugins: [
'~/plugins/vue-highlightjs.js',
],
components: true,
buildModules: [
'@nuxtjs/tailwindcss',
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa',
'@nuxt/content'
],
generate: {
async routes() {
const {$content} = require('@nuxt/content')
const files = await $content({deep: true}).only(['path']).fetch()
return files.map(file => file.path)
}
},
build: {
extend(config) {
config.resolve.alias['vue$'] = 'vue/dist/vue.common'
}
}
}