-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.js
82 lines (80 loc) · 1.93 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
module.exports = {
/*
** Headers of the page
*/
mode: 'spa',
head: {
title: 'Firebase Nuxt Quiz',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Simple firebase nuxt quiz app.' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css?family=Lora|Ubuntu"
}
]
},
css:[
'@/assets/global.css'
],
/*
** Customize the progress bar color
*/
loading: { color: '#ffffff', height: '4px' },
/*
** Build configuration
*/
build: {
/*
** 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)/
})
}
},
publicPath: '/static/'
},
plugins:[
'./plugins/firebase.js',
{ src: '~/plugins/localStorage.js', ssr: false },
{ src: '~/plugins/rwd.js', ssr: false }
],
modules: [
'nuxt-material-design-icons',
[ '@nuxtjs/pwa', { meta: false }]
],
router:{
middleware: 'global',
base: process.env.DEPLOY_ENV === 'GH_PAGES' ? '/firebase-nuxt-quiz/' : '/'
},
workbox: {
offlineAssets:[
'https://fonts.googleapis.com/css?family=Lora|Ubuntu',
'https://fonts.gstatic.com/s/lora/v12/0QIvMX1D_JOuMwr7Iw.woff2',
'https://fonts.gstatic.com/s/ubuntu/v12/4iCs6KVjbNBYlgoKfw72.woff2',
'/go.png', '/gui.png', '/php.png', '/reactivity.png', '/vue.png'
],
offlinePage:[
'/index.html'
]
},
manifest:{
name: 'Fuxt',
description: 'Simple PWA Quiz using Firebase&Nuxt',
lang: 'en',
background_color: "#ba375d"
},
icon: {
iconSrc: '/static/firebase.png'
}
}