-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
87 lines (87 loc) · 2.1 KB
/
nuxt.config.js
File metadata and controls
87 lines (87 loc) · 2.1 KB
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
export default {
mode: 'universal',
/*
** Headers of the page
*/
head: {
htmlAttrs: {
lang: 'zh'
},
title: '',
titleTemplate: (titleChunk) => {
return titleChunk ? titleChunk + '-影视1994' : '影视1994'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'keywords', name: 'keywords', content: '免费电影观看,电影观看,最新电影' },
{ hid: 'description', name: 'description', content: '最好的在线电影网,分享最新电影,高清电影、综艺、动漫、电视剧等在线观看!' }
],
link: [
{ rel: 'icon', href: '/favicon.ico' },
{ rel: 'preload', as: 'style', href: 'https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css' },
{ rel: 'stylesheet', href: 'https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css' },
{ rel: 'preload', as: 'script', href: 'https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js' }
],
script: [
{ src: 'https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js' }
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#fff' },
/*
** Global CSS
*/
css: [
],
/*
** Plugins to load before mounting the App
*/
plugins: [
{
src: '~/plugins/router.js',
ssr: false
},
'~/plugins/design.js',
'~/plugins/axios.js',
'~/plugins/login.js',
'~/plugins/api.js',
'~/plugins/filters.js'
],
/*
** Nuxt.js dev-modules
*/
buildModules: [
// Doc: https://github.com/nuxt-community/eslint-module
'@nuxtjs/eslint-module'
],
/*
** Nuxt.js modules
*/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'~/modules/api/module.js'
],
/*
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend (config, ctx) {
}
},
server: {
port: process.env.NODE_ENV === 'development' ? 9011 : 9010
}
}