-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.js
65 lines (61 loc) · 2.26 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
module.exports = {
head: {
htmlAttrs: {
lang: 'es-ES',
},
title: ' ',
titleTemplate: '%s - Pills: Aprende mucho en poco tiempo',
meta: [
{ charset: 'utf-8' },
{ hid: 'description', name: 'description', content: 'Proyecto Pills' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#42B883' },
// CARD FACEBOOK
{ property: 'og:url', content: 'http://your-url.com/' },
{ property: 'og:type', content: 'article' },
{ property: 'og:title', content: 'Pills — Aprende mucho en poco tiempo' },
{ property: 'og:description', content: 'Pills es una plataforma de microvídeos formativos. Aprende una forma más flexible y cómoda' },
{ property: 'og:updated_time', content: '2017-10-04T17:20:50' },
{ property: 'og:image', content: '/pills/favicon.ico' },
// CARD TWITTER
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:site', content: '@jdonsan' },
{ name: 'twitter:creator', content: '@jdonsan' },
{ name: 'twitter:title', content: 'Pills — Aprende mucho en poco tiempo' },
{ name: 'twitter:description', content: 'Pills es una plataforma de microvídeos formativos. Aprende una forma más flexible y cómoda' },
{ name: 'twitter:image', content: '/pills/favicon.ico' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/pills/favicon.ico' },
{ rel: 'manifest', type: 'application/manifest+json', href: '/pills/manifest.json' }
]
},
loading: { color: '#3B8070' },
router: {
base: '/pills/',
middleware: 'i18n'
},
plugins: ['~/plugins/i18n.js',],
build: {
vendor: ['vue-i18n'],
publicPath: '/statics/',
extend(config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
const vueLoader = config.module.rules.find(rule => rule.loader === 'vue-loader');
vueLoader.options.transformToRequire = {
video: 'poster',
source: 'src'
}
}
},
generate: {
routes: ['/', '/about', '/login', '/en', '/en/about', '/en/login']
}
}