-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
98 lines (98 loc) · 2.56 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
export default {
server: {
host: '0.0.0.0',
},
components: true,
head: {
title: 'Classical for Everyone',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: 'Understand music with listening guides',
},
{ hid: 'twitter:image', name: 'twitter:image', content: '/icon.png', },
{ hid: 'og:image', name: 'og:image', content: '/icon.png', },
],
link: [
{
rel: 'stylesheet',
href: 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css',
},
{
rel: 'icon',
type: 'image/png',
href: '/favicon.png'
},
],
},
modules: [
['nuxt-buefy', { css: false, defaultProgrammaticPromise: true }],
'@nuxtjs/proxy',
'@nuxtjs/axios',
'@nuxtjs/markdownit',
'vue-social-sharing/nuxt',
['nuxt-fontawesome', {
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['faSearch', 'faArrowLeft', 'faArrowRight', 'faTimesCircle', 'faUpload']
},
{
set: '@fortawesome/free-brands-svg-icons',
icons: ['faTwitterSquare', 'faFacebookSquare', 'faRedditSquare']
},
]
}],
],
axios: {
proxy: true,
},
proxy: {
// Dev server proxy
'/api': 'http://localhost:8080',
'/static_files': {target: 'https://storage.googleapis.com/classical-for-everyone.appspot.com/static', pathRewrite: {'^/static_files/': ''}},
},
css: [{ src: 'assets/styles.scss', lang: 'scss' }],
plugins: [ { src: '@/plugins/vue-shortkey.js', mode: 'client' } ],
markdownit: {
injected: true,
html: true,
use: [
'../plugins/markdown-it-target-blank',
['markdown-it-table-of-contents',
{
containerClass: "box markdown-toc",
containerHeaderHtml: "<strong>Contents</strong>",
listType: "ol",
slugify: (s) =>
encodeURIComponent(
String(s)
.trim()
.toLowerCase()
.replace(/\s+/g, "-")
.replace(/[./]+/g, "")
),
}],
['markdown-it-anchor',
{
slugify: (s) =>
encodeURIComponent(
String(s)
.trim()
.toLowerCase()
.replace(/\s+/g, "-")
.replace(/[./]+/g, "")
),
}
]
]
},
loading: {
color: '#828bf9',
height: '3px',
throttle: 100,
}
}