-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.js
133 lines (131 loc) · 4.04 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
const { UnusedFilesWebpackPlugin } = require("unused-files-webpack-plugin")
module.exports = {
mode: 'spa',
/*
** Headers of the page
*/
head: {
title: 'MESG - The new economy of app development',
titleTemplate: '%s | MESG',
htmlAttrs: {
prefix: 'og: http://ogp.me/ns#'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Connect reusable, shareable integrations from any API or decentralized network, managed by the MESG SDK.' },
{ hid: 'og:image:height', property: 'og:image:height', content: '1257' },
{ hid: 'og:image:width', property: 'og:image:width', content: '2400' },
{ hid: 'og:image', property: 'og:image', content: 'https://mesg.com/og-image.jpg' },
{ hid: 'og:title', property: 'og:title', content: 'MESG - The new economy of app development' },
{ hid: 'og:description', property: 'og:description', content: 'Connect reusable, shareable integrations from any API or decentralized network, managed by the MESG SDK.' },
{ hid: 'og:url', property: 'og:url', content: 'https://mesg.com/' },
{ hid: 'og:site_name', property: 'og:site_name', content: 'MESG' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ name: 'msapplication-TileColor', content: '#ffffff' },
{ name: 'theme-color', content: '#ffffff' },
{ name: 'google-site-verification', content: 'i3CdpilCzrJntOqUSydRtMsgjHt-wBF7QwOHckT19sI' }
],
link: [
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
{ rel: 'manifest', href: '/site.webmanifest' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Open+Sans' },
],
script: [
{ src: "https://kit.fontawesome.com/9501c0d07b.js", crossorigin: "anonymous" }
]
},
css: [
'~/assets/style.scss'
],
/*
** Customize the progress bar color
*/
loading: { color: '#491e8c' },
manifest: {
theme_color: '#491e8c'
},
modules: [
'@nuxtjs/pwa',
'@nuxtjs/sitemap',
'@nuxtjs/style-resources',
process.env.GA_ID ? ['@nuxtjs/google-analytics', {
id: process.env.GA_ID
}] : null,
process.env.GTM_ID ? ['@nuxtjs/google-tag-manager', {
id: process.env.GTM_ID
}] : null
].filter(x => x),
router: {
middleware: ['mesg-curl']
},
sitemap: {
hostname: 'https://mesg.com',
cacheTime: 1000 * 60 * 15,
gzip: true,
generate: true, // Enable me when using nuxt generate
exclude: ['showcases']
},
// styleResources: {
// scss: [
// './assets/_variables.scss'
// ]
// },
/*
** Plugins
*/
plugins: [
{
src: '~/plugins/date.js'
},
{ src: '~/plugins/directives/sticky', ssr: false },
{ src: '~/plugins/directives/show-only-children' },
],
generate: {
routes: [
...[
'expand-dao-functionalities',
'plasma-exit-challenge',
'send-messages-from-a-satellite',
'enhance-zapier-workflows',
'monitor-erc20-transactions',
'replace-subscriptions-with-on-demand-payments',
'directly-buy-crypto-with-fiat',
'404'
].map(x => `/showcase/${x}`),
'404'
]
},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend(config, { isDev }) {
if (isDev && process.client) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
plugins: [
// new UnusedFilesWebpackPlugin({
// patterns: [
// '**/*.*',
// '!*',
// '!static/**',
// '!assets/documents/**',
// '!**/*.md'
// ]
// }),
],
}
}