This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy pathnuxt.config.js
81 lines (79 loc) · 1.8 KB
/
nuxt.config.js
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
import dotenv from 'dotenv-defaults'
// Configuring dotenv variables.
dotenv.config({
path: '../../config/.env',
defaults: '../../config/.env.defaults'
})
export default {
mode: 'universal',
options: {
target: 'static'
},
srcDir: __dirname,
head: {
title: 'Chakra UI Vue | Simple, Modular and Accessible UI Components for your Vue Applications.',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: 'Simple, Modular and Accessible UI Components for your Vue Applications. Built with Styled System.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
env: {
MIXPANEL_TOKEN: process.env.MIXPANEL_TOKEN
},
loading: { color: '#fff' },
plugins: [
{ src: 'plugins/analytics.js', ssr: false },
'plugins/links.js',
'plugins/editor.js',
'plugins/chakra-ui.js',
'plugins/vue-meta.js'
],
css: [
'css/page.css'
],
buildModules: [
'@nuxtjs/eslint-module'
],
modules: [
['@nuxtjs/emotion', {
ssr: 'critical'
}],
'@nuxtjs/pwa',
'modules/routes'
],
router: {
prefetchLinks: true
},
pwa: {
meta: {
name: 'Chakra UI Vue',
description: 'Build accessible Vue applications with speed ⚡️',
theme_color: '#3ea76a',
author: 'Jonathan Bakebwa <[email protected]> https://jbakebwa.dev'
},
icon: {
iconSrc: 'static/chakra.png',
iconFileName: 'chakra.png'
}
},
extensions: [
'mdx'
],
build: {
transpile: [
'vue-lorem-ipsum',
'@chakra-ui/vue',
'@chakra-ui/theme-vue'
],
additionalExtensions: [
'.mdx'
],
extend (config, ctx) {
config.resolve.alias.vue = 'vue/dist/vue.common'
}
}
}