forked from DazeCake/IberiaEye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
77 lines (66 loc) · 1.92 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
export default {
server: {
port: 8000, // default: 3000
host: '0.0.0.0' // default: localhost
},
// https://go.nuxtjs.dev/ssr-mode
ssr: false,
// https://go.nuxtjs.dev/config-target
target: 'static',
// https://go.nuxtjs.dev/config-head
head: {
title: '伊比利亚审判庭',
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1, user-scalable=no'
},
{ name: 'description', content: '伊比利亚审判庭 - 明日方舟云托管平台' }
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},
// https://go.nuxtjs.dev/config-css
css: ['ant-design-vue/dist/antd.css', '@/assets/index.css', '@/assets/tailwind.css'],
// https://go.nuxtjs.dev/config-plugins
plugins: ['@/plugins/axios', '@/plugins/storage', '@/plugins/antd', '@/plugins/moment', '@/plugins/utils'],
// https://go.nuxtjs.dev/config-components
components: true,
// https://go.nuxtjs.dev/config-modules
buildModules: ['@nuxt/postcss8'],
// https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
// https://github.com/chantouchsek/nuxt-clipboard
'nuxt-clipboard'
],
// https://go.nuxtjs.dev/config-axios
axios: {
// https://github.com/nuxt-community/axios-module/issues/308
//ip 域名
baseURL: 'http://119.91.210.140:1999/'
//baseURL: 'https://joy-player.com:1999/'
},
// https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
lang: 'zh-CN',
name: '伊比利亚审判庭',
short_name: '伊比利亚审判庭',
description: '伊比利亚审判庭 - 游戏托管平台',
start_url: '/'
}
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
}
}