-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
147 lines (144 loc) · 3.57 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
export default {
mode: 'spa',
/*
** Headers of the page
*/
server: {
host: '0.0.0.0'
},
head: {
title: 'Luis Enrique Bustamante Pérez' || process.env.npm_package_name,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'luis_enrique',
name: 'Luis_enrique_bustamante',
content: 'Luis Enrique Bustamante Peres, escritor'
},
{
hid: 'msapplication-TileColor',
name: 'msapplication-TileColor',
content: '#646464'
},
{
hid: 'msapplication-TileImage',
name: 'msapplication-TileImage',
content: '/ms-icon-144x144.png'
},
{
hid: 'theme-color',
name: 'theme-color',
content: '#ffffff'
},
],
link: [
{ rel: 'icon', type: 'image/png', sizes: "32x32", href: '/images/icon/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: "16x16", href: '/images/icon/favicon-16x16.png' },
{ rel: 'manifest', href: '/images/icon/manifest.json' },
{ rel: "mask-icon", href: "/safari-pinned-tab.svg", color: "#ffd400" },
{ rel: "apple-touch-icon", sizes: "152x152", href: "/apple-touch-icon.png" },
{ rel: 'icon', type: 'image/x-icon', href: '/images/icon/favicon.ico' },
{ href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css', rel: "stylesheet" },
],
script: [
{ src: 'https://code.jquery.com/jquery-3.3.1.slim.min.js' },
// { src: 'https://kit.fontawesome.com/3122b9c598.js' },
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js' },
{ src: 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js' },
{ src: 'https://checkout.culqi.com/js/v3' },
// { src: 'https://checkout.culqi.com/v2' },
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/**
* router exact active
*/
router: {
linkExactActiveClass: 'exact-active-link'
},
/*
** Global CSS
*/
css: [
// 'bootstrap/dist/css/bootstrap.css',
'~/assets/scss/app.scss',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: 'plugins/owl.js', ssr: false },
'~/plugins/axios',
'~/plugins/api',
'~/plugins/vue-loading'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/pwa',
'@nuxtjs/toast',
[
'nuxt-validate',
{
lang: 'es',
nuxti18n: {
locale: {
'zh-CN': 'zh_CN'
}
}
}
],
'@nuxtjs/style-resources'
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
baseURL: process.env.NODE_ENV === 'production' ?
'https://enriqueapi.herokuapp.com/api/' :
'https://enriqueapi.herokuapp.com/api/'
},
toast: {
position: 'top-right',
className: 'app-toast',
duration: 7000,
action: {
text: 'X',
// eslint-disable-next-line
onClick: (e, toastObject) => {
toastObject.goAway(0)
}
}
},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, ctx) {
// Run ESLint on save
if (ctx.isDev && ctx.isClient) {
config.module.rules.push({
enforce: "pre",
test: /\.(js|vue)$/,
loader: "eslint-loader",
exclude: /(node_modules)/
})
}
}
}
}