forked from 14nrv/buefy-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
71 lines (69 loc) · 1.22 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
const {
NODE_ENV,
ANALYZE,
FB_DATABASE_URL,
FB_PROJECT_ID,
FB_API_KEY,
FB_AUTH_DOMAIN,
FB_STORAGE_BUCKET,
FB_MESSAGE_SENDER_ID,
STRIPE_PUBLISHABLE_KEY,
STRIPE_URL
} = process.env
const modules = [
'@nuxtjs/pwa'
]
const isNotProdEnv = NODE_ENV !== 'production'
isNotProdEnv && modules.push('@nuxtjs/dotenv')
module.exports = {
/*
** Build configuration
*/
build: {
postcss: [// will fix bulma warning about column
require('postcss-cssnext')({
features: {
customProperties: false
}
})
],
analyze: ANALYZE,
vendor: [
'firebase'
]
},
/*
** Headers
** Common headers are already provided by @nuxtjs/pwa preset
*/
head: {},
/*
** Customize the progress-bar color
*/
loading: { color: '#3B8070' },
/*
** Customize app manifest
*/
manifest: {
theme_color: '#3B8070'
},
/*
** Modules
*/
modules,
plugins: [
'~plugins/firebase',
{ src: '~plugins/veeValidate', ssr: false },
{ src: '~plugins/lazysizes', 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
}
}