-
Notifications
You must be signed in to change notification settings - Fork 10
/
nuxt.config.js
55 lines (54 loc) · 1.28 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
const webpack = require('webpack')
const gustavoConfig = require('./gustavo.config')
module.exports = {
env: {
runningPort: process.env.PORT || 3000
},
build: {
vendor: ['axios'],
plugins: [
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/)
]
},
srcDir: __dirname,
head: {
title: gustavoConfig.title,
meta: [
{ charset: 'utf-8' },
{ hid: 'og:title', name: 'og:title', content: gustavoConfig.title },
{ hid: 'og:description', name: 'og:description', content: gustavoConfig.description || gustavoConfig.title },
{ hid: 'viewport', name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: gustavoConfig.favciconUrl || '/favicon.png' }
]
},
/*
** Global CSS
*/
css: [
'normalize.css',
{ src: '~assets/css/main.scss', lang: 'scss' }
],
loading: {
color: gustavoConfig.loadingColor || 'black'
},
modules: [
'@nuxtjs/pwa',
'@nuxtjs/component-cache',
{
src: '@nuxtjs/google-analytics',
options: {
ua: gustavoConfig.googleAnalyticsId
}
}
],
plugins: [
'~plugins/vue-moment',
'~plugins/to-iso-date'
],
router: {
middleware: 'hide-nav'
},
gustavo: gustavoConfig
}