-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
87 lines (85 loc) · 2.39 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
module.exports = {
/*
** Headers of the page
*/
router:{
extendRoutes(routes,resolve){
routes.push({
name:'note-id',
path:'/:type/:id(\\d+)',
component:resolve(__dirname,'pages/archive/_type/_id.vue')
})
}
},
modules: [
'@nuxtjs/proxy'
],
proxy: {
'/root': {
target: 'http://localhost',
changeOrigin:true,
pathRewrite: {
'^/root' : ''
}
}
},
head: {
title: '忍野喵 | おしの · にゃ',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '忍野喵的温馨破窝' },
{ hid: 'keywords', name: 'keywords', content: '忍野喵,oshinonya,ACGN,coding,二次元,动漫,游戏,极客,jojo,东方Project,Fate,明日方舟' },
{ name: 'google-site-verification', content: 'WRATWWuqpi__psp2LqrzV5I4SZV1AoHSYmiB6K7B2qI'}
],
link: [
{ rel: 'shortcut icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'apple-touch-icon', href: '/apple-icon.png' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: '/static/iconfont/iconfont.css' },
//{ rel: 'stylesheet', href: '/static/css/github-markdown3.0.css' },
{ rel: 'stylesheet', href: 'https://cdn.bootcdn.net/ajax/libs/highlight.js/9.12.0/styles/github.min.css' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Noto+Serif+SC:500,700&display=swap&subset=chinese-simplified,cyrillic' },
]
},
css:[
'~assets/styles/index.css',
'aplayer/dist/APlayer.min.css',
'mavon-editor/dist/css/index.css'
],
plugins:[
'~plugins/http.js',
'~plugins/prototype.js',
'~plugins/vue_use.js',
'~plugins/init.client.js',
],
server: {
port: 8080,
},
env:{
API_ROOT: process.env.API_ROOT
},
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
build: {
extractCSS: true,//提取样式输出整个css
/*
** 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)/
// })
// }
// }
}
};