-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
99 lines (98 loc) · 2.54 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
92
93
94
95
96
97
98
99
export default {
mode: 'universal',
target: 'static',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel:'apple-touch-icon-precomposed', sizes:'180x180', href:'/apple-touch-icon.png' },
{ rel:'icon', type:'image/png', href:'/favicon-32x32.png', sizes:'32x32' },
{ rel:'icon', type:'image/png', href:'/favicon-16x16.png', sizes:'16x16' },
{ rel: 'stylesheet', type: 'text/css', href: '//use.fontawesome.com/releases/v5.4.2/css/all.css'},
{ rel: 'stylesheet', type: 'text/css', href: '//fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300;400;700&family=PT+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'},
]
},
/*
** Customize the progress-bar color
*/
loading: false,
/*
** Global CSS
*/
css: [
'@/assets/styles/application.sass'
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/map.js',
'~/plugins/axios.js',
'~/plugins/bootstrap.js',
'~/plugins/mailchimp.js'
],
/*
** Nuxt.js modules
*/
modules: [
'cookie-universal-nuxt',
['prismic-nuxt', {
endpoint: 'https://cannabismedic.cdn.prismic.io/api/v2',
linkResolver: function(doc, ctx) {
return '/'
}
}],
['nuxt-i18n', {
locales: [
{
name: 'English',
code: 'en',
iso: 'en-CA',
file: 'en.js'
},
{
name: 'Francais',
code: 'fr',
iso: 'fr-CA',
file: 'fr.js'
}
],
langDir: 'locales/',
defaultLocale: 'fr',
lazy: true,
vuex: {
moduleName: 'i18n', syncLocale: true, syncMessages: false, syncRouteParams: true
}
}],
['@nuxtjs/google-analytics', {
id: 'UA-135339299-1'
}],
'@nuxtjs/axios',
'@nuxtjs/moment'
],
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
},
transpile: [/^vue2-google-maps($|\/)/, 'vue2-gmap-custom-marker'],
},
publicRuntimeConfig: {
emailjs_service_id: process.env.EMAIL_SERVICE_ID,
emailjs_template_id: process.env.EMAIL_TEMPLATE_ID,
emailjs_user_id: process.env.EMAIL_USER_ID,
mailchimp_list_id: process.env.MAILCHIMP_LIST_ID,
mailchimp_user_id:process.env.MAILCHIMP_USER_ID,
}
}