-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnuxt.config.js
More file actions
executable file
·98 lines (98 loc) · 2.4 KB
/
nuxt.config.js
File metadata and controls
executable file
·98 lines (98 loc) · 2.4 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
88
89
90
91
92
93
94
95
96
97
98
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'UBIC @ UCSD',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Undergraduate Bioinformatics Club at UC San Diego' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: "https://use.fontawesome.com/releases/v5.1.1/css/all.css", integrity: "sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ", crossorigin: "anonymous" }
]
},
/*
** Customize the progress bar color
*/
loading: { color: '#F7C8A5' },
router: {
base: '',
routes: [
]
},
/*
** Build configuration
*/
plugins: [
{ src: '~/plugins/vue-full-calendar', ssr: false },
{ src: '~/plugins/buefy', ssr: false },
{ src: '~/plugins/ga', ssr: false }
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth',
'nuxt-buefy'
],
axios: {
credentials: false
// proxyHeaders: false
},
auth: {
//plugins: ['~/plugins/auth-tweak.js'],
redirect: {
callback: '/callback',
logout: '/'
},
strategies: {
google: {
client_id: '10317661874-kcl18u77mkjkh0p6s8t64jc8jmenbgc6.apps.googleusercontent.com'
},
ucsd: {
_scheme: 'oauth2',
authorization_endpoint: 'https://accounts.google.com/o/oauth2/auth',
userinfo_endpoint: 'https://www.googleapis.com/oauth2/v3/userinfo',
scope: ['openid', 'profile', 'email'],
response_type: 'token',
token_type: 'Bearer',
redirect_uri: undefined,
client_id: 'SET_ME',
token_key: 'access_token'
}
}
},
/*
** Include css not in components
*/
css: [
// node.js module but we specify the pre-processor
{ src: 'bulma/bulma.sass', lang: 'sass' },
{ src: 'fullcalendar/dist/fullcalendar.min.css', lang: 'css'}
],
build: {
vendor: [
],
postcss: {
plugins: {
'postcss-custom-properties': {
warnings: false
}
}
},
/*
** 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)/
})
}
}
}
}