-
Notifications
You must be signed in to change notification settings - Fork 7
/
nuxt.config.js
124 lines (122 loc) · 2.84 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
import colors from "vuetify/es5/util/colors";
const metaHeaders = require("./meta-headers.json");
export default {
mode: "spa",
/*
** Headers of the page
*/
head: {
title: metaHeaders.title,
meta: [
metaHeaders,
...Object.entries(metaHeaders).map(([key, value]) => ({
hid: key,
name: key,
content: value,
})),
...Object.entries(metaHeaders).map(([key, value]) => ({
hid: `og:${key}`,
property: `og:${key}`,
content: value,
})),
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
},
/*
** Customize the progress-bar color
*/
loading: { color: "#fff" },
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: ["~/plugins/mixins.js"],
/*
** Nuxt.js dev-modules
*/
buildModules: ["@nuxtjs/vuetify"],
/*
** Nuxt.js modules
*/
modules: ["nuxt-webfontloader"],
/*
** Redirect a few routes from the old website to new pages
*/
router: {
extendRoutes(routes, resolve) {
routes.push(
{ path: "/articles", redirect: { name: "article" } },
{ path: "/whitepaper", redirect: { name: "article" } },
{ path: "/collaborate", redirect: { name: "join" } }
);
},
},
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
vuetify: {
customVariables: [
"~/assets/images.scss",
"~/assets/mixins.scss",
"~/assets/typography.scss",
"~/assets/variables.scss",
],
theme: {
options: {
customProperties: true,
},
themes: {
light: {
primary: "#2C58B1",
bluejay: "#2C58B1",
accent: "#F05452",
tangerine: "#F05452",
secondary: "#43C4D9",
aqua: "#43C4D9",
plum: "#4B0A70",
lavender: "#A680B7",
elderberry: "#2C007B",
thistle: "#71CDDF",
pewter: "#585858",
silver: "#C4C4C4",
grey: "#828282",
info: "#2C58B1", // bluejay
warning: "#43C4D9", // aqua
error: "#F05452", // tangerine
success: "#A680B7", // lavender
},
},
},
defaultAssets: {
font: {
family: "Montserrat",
},
},
treeShake: true, // override production-only default so defaultAssets work as expected
},
/*
** nuxt-webfontloader module configuration
** https://github.com/Developmint/nuxt-webfontloader
*/
webfontloader: {
google: {
families: ["Montserrat:400,600,700"], // Loads Monserrat with 400, 600 and 700 weights
},
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {},
},
generate: {
fallback: true, // generate a 404.html fallback page
},
};