-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
93 lines (93 loc) · 2.65 KB
/
nuxt.config.ts
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'nuxt-vuefire',
'@nuxtjs/tailwindcss',
'@nuxt/eslint',
'@pinia/nuxt',
'@stefanobartoletti/nuxt-social-share',
'@vueuse/nuxt',
'@vite-pwa/nuxt',
'nuxt-icon',
'nuxt-primevue',
],
pages: true,
tailwindcss: {
editorSupport: true,
exposeConfig: true,
},
primevue: {
directives: {
include: ['FocusTrap'],
},
cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities',
},
css: ['primevue/resources/themes/aura-light-green/theme.css', 'primeicons/primeicons.css'],
vuefire: {
auth: { enabled: true, persistence: ["browserLocal", "inMemory", "indexedDBLocal", "browserSession"] },
config: {
apiKey: 'AIzaSyAvTFnFWFKpXmF0SLIkMNbHHZtudxkz0Zg',
authDomain: 'grocery-share-d71c3.firebaseapp.com',
projectId: 'grocery-share-d71c3',
storageBucket: 'grocery-share-d71c3.appspot.com',
messagingSenderId: '1006595755188',
appId: '1:1006595755188:web:be084aeb82b721e6fcdbe1',
measurementId: 'G-BSRD1BDWMV',
},
},
pwa: {
devOptions: {
enabled: true,
suppressWarnings: true,
navigateFallback: "/"
},
base: '/',
strategies: 'generateSW',
workbox: {
// Only precache these files - html should be excluded
globPatterns: ['**/*.{js,css}'],
// Don't fallback on document based (e.g. `/some-page`) requests
// Even though this says `null` by default, I had to set this specifically to `null` to make it work
navigateFallback: null,
},
injectManifest: {
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
},
manifest: {
name: 'Grocery Share',
short_name: 'Grocery Share',
description: 'Grocery Share is a platform for sharing lists with anyone!',
lang: 'en',
theme_color: '#b9bba5',
background_color: '#b9bba5',
display: 'standalone',
icons: [
{
src: 'img/icons/manifest-icon-192.maskable.png',
sizes: '192x192',
type: 'image/png',
purpose: 'any',
},
{
src: 'img/icons/manifest-icon-192.maskable.png',
sizes: '192x192',
type: 'image/png',
purpose: 'maskable',
},
{
src: 'img/icons/manifest-icon-512.maskable.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any',
},
{
src: 'img/icons/manifest-icon-512.maskable.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
},
})