forked from lonelyion/material-vtuber-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
151 lines (150 loc) · 4.14 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
import colors from 'vuetify/es5/util/colors';
const production_url = process.env.NODE_ENV === 'production' ? 'https://btn.lonelyion.com/' : '/_nuxt/';
const manifest_url = process.env.NODE_ENV === 'production' ? '/' : '/_nuxt/';
export default {
mode: 'spa',
server: {
port: 3000, // default: 3000
host: 'localhost' // default: localhost
},
/*
** Headers of the page
*/
head: {
title: 'フブキボタン',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content: '白上フブキの音声ボタン 白上吹雪语音按钮 Voice button for Shirakami Fubuki'
},
{
hid: 'keywords',
name: 'keywords',
content:
'フブキボタン,FUBUKI BUTTON,狐按钮,hololive,Shirakami Fubuki,白上フブキ,白上吹雪,吹雪,小狐狸,屑狐狸,喵喵狐,语音按钮,ボイスボタン'
},
{ hid: 'og:site_name', property: 'og:site_name', content: 'フブキボタン' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: 'https://fubuki.moe' },
{ hid: 'og:title', property: 'og:title', content: 'フブキボタン' },
{
hid: 'og:description',
property: 'og:description',
content: '新しい白上フブキのボイスボタン。私たちの目標は白上フブキの総合的なファンサイトを作ることです。'
},
{ hid: 'og:image', property: 'og:image', content: 'https://fubuki.moe/img/og_common.jpg' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:site', content: '@lonely_ion' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'stylesheet',
type: 'text/css',
href: 'https://fonts.loli.net/css?family=Noto Sans SC:100,300,400,500,700,900&display=swap'
}
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [],
/*
** Plugins to load before mounting the App
*/
plugins: [
{ src: '@plugins/i18n', ssr: false },
{ src: '@plugins/eventBus.js', ssr: false }
],
router: {
middleware: 'ui_config'
},
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxtjs/vuetify',
[
'@nuxtjs/google-analytics',
{
id: `UA-103626808-5`
}
]
],
/*
** Nuxt.js modules
*/
modules: [
['@nuxtjs/pwa', { workbox: { publicPath: production_url }, manifest: { publicPath: manifest_url } }],
'@nuxtjs/axios',
'@nuxtjs/markdownit'
],
/*
** vuetify module configuration
** https://github.com/nuxt-community/vuetify-module
*/
markdownit: {
preset: 'default',
linkify: true,
breaks: false,
use: ['markdown-it-div', 'markdown-it-attrs']
},
vuetify: {
customVariables: ['~/assets/variables.scss'],
theme: {
dark: false,
themes: {
light: {
primary: colors.blue.base,
secondary: colors.grey.darken4,
accent: colors.blue.lighten2,
error: colors.deepOrange.base,
warning: colors.orange.base,
info: colors.blueGrey.base,
success: colors.teal.base
},
dark: {
primary: colors.blue.darken3,
secondary: colors.grey.darken4,
accent: colors.lightBlue.darken4,
error: colors.deepOrange.accent4,
warning: colors.amber.base,
info: colors.teal.lighten1,
success: colors.green.accent3
}
}
},
defaultAssets: {
font: null
},
pwa: {
manifest: {
start_url: 'https://fubuki.moe/?standalone=true'
}
}
},
/*
** Build configuration
*/
build: {
publicPath: production_url,
extend(config, ctx) {
// Run ESLint on save
if (ctx.isDev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
});
}
}
}
};