This repository was archived by the owner on Nov 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
85 lines (71 loc) · 1.95 KB
/
nuxt.config.js
File metadata and controls
85 lines (71 loc) · 1.95 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
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
require('dotenv').config()
export default {
srcDir: __dirname,
env: {
apiUrl: process.env.API_URL + '/api/v1',
appName: process.env.APP_NAME,
appLocale: process.env.APP_LOCALE || 'en',
githubAuth: !!process.env.GITHUB_CLIENT_ID
},
head: {
htmlAttrs: {
lang: process.env.APP_LOCALE
},
title: process.env.APP_NAME,
titleTemplate: '%s - ' + process.env.APP_NAME,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' },
{
hid: 'og:site_name',
property: 'og:site_name',
content: process.env.APP_NAME
},
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: process.env.APP_URL },
{ hid: 'og:title', property: 'og:title', content: process.env.APP_NAME },
{
hid: 'og:description',
property: 'og:description',
content: process.env.APP_NAME
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
loading: { color: '#007bff' },
router: {
middleware: ['locale', 'check-auth']
},
css: [{ src: '~assets/sass/app.scss', lang: 'scss' }],
plugins: [
'@/plugins/i18n',
'@/plugins/axios',
'@/plugins/vue-inject',
'@/plugins/vuelidate'
],
modules: [
'@nuxtjs/vuetify',
'@nuxtjs/router',
'@nuxtjs/pwa',
'@nuxtjs/sitemap',
'@nuxtjs/style-resources'
],
buildModules: ['@nuxtjs/google-analytics'],
build: {
extractCSS: true
},
sitemap: {
// custom configuration for @nuxtjs/sitemap
},
styleResources: {
scss: ['@/assets/sass/_variables.scss', '@/assets/sass/functions/*.scss']
},
vuetify: {
customVariables: ['@/assets/sass/_variables.scss']
},
googleAnalytics: {
// custom configuration for @nuxtjs/google-analytics
// id: "UA-12301-2"
}
}