-
Notifications
You must be signed in to change notification settings - Fork 85
/
nuxt.config.js
91 lines (88 loc) · 1.55 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
82
83
84
85
86
87
88
89
90
91
import { description, name } from './package.json'
const {
ANALYZE,
FB_API_KEY,
FB_AUTH_DOMAIN,
FB_DATABASE_URL,
FB_MESSAGE_SENDER_ID,
FB_PROJECT_ID,
FB_STORAGE_BUCKET,
GA_ID,
NODE_ENV,
STRIPE_PUBLISHABLE_KEY,
STRIPE_URL
} = process.env
const modules = []
const isNotProdEnv = NODE_ENV !== 'production'
modules.push(
isNotProdEnv
? '@nuxtjs/dotenv'
: ['@nuxtjs/google-analytics', { id: GA_ID }]
)
module.exports = {
/*
** Build configuration
*/
build: {
postcss: { // will fix bulma warning about column
preset: {
features: {
'custom-properties': false
}
}
},
analyze: ANALYZE,
vendor: [
'firebase/app',
'firebase/database'
]
},
/*
** Headers
** Common headers are already provided by @nuxtjs/pwa preset
*/
pwa: {
meta: {
description,
name
},
manifest: {
description,
name,
short_name: name
}
},
/*
** Customize the progress-bar color
*/
loading: { color: '#3B8070' },
/*
** Customize app manifest
*/
manifest: {
theme_color: '#3B8070'
},
/*
** Modules
*/
buildModules: [
'@nuxtjs/pwa'
],
modules,
plugins: [
'~plugins/firebase',
{ src: '~plugins/veeValidate', ssr: false },
{ src: '~plugins/lazysizes', ssr: false },
{ src: '~plugins/localStorage.js', ssr: false }
],
env: {
FB_DATABASE_URL,
FB_PROJECT_ID,
FB_API_KEY,
FB_AUTH_DOMAIN,
FB_STORAGE_BUCKET,
FB_MESSAGE_SENDER_ID,
STRIPE_PUBLISHABLE_KEY,
STRIPE_URL
}
}