-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
56 lines (55 loc) · 2.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
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'Maxwell Alexius\' Portfolio Site | Svartalvheim',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Maxwell Alexius\'s portfolio site' },
{ property: 'og:url', content: 'https://svartalvhe.im/maxwell-alexius' },
{ property: 'og:type', content: 'article' },
{ property: 'og:title', content: 'Maxwell Alexius' },
{ property: 'og:description', content: 'Welcome to Svartalvheim where Software Built' },
{ property: 'og:image', content: 'https://i.imgur.com/appNsU9.png' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,500|Staatliches' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto+Mono|Share+Tech+Mono' },
{ rel: 'stylesheet', href: 'https://unpkg.com/leaflet@1.5.1/dist/leaflet.css', integrity: 'sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==', crossorigin: '' },
],
script: [
{ type: 'text/javascript', src: 'https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js' },
{ type: 'text/javascript', src: 'https://unpkg.com/leaflet@1.5.1/dist/leaflet.js', integrity: 'sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og==', crossorigin: '' },
],
},
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
},
router: {
scrollBehavior() {
return { x: 0, y: 0 };
},
},
}