-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
98 lines (97 loc) · 2.12 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
87
88
89
90
91
92
93
94
95
96
97
98
import { defineNuxtConfig } from '@nuxt/bridge'
import fr from './locales/fr.json'
export default defineNuxtConfig({
target: 'static',
ssr: false,
bridge: false,
head: {
title: 'Espace Public',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
"Espace public est le point d'accès à l'information sur les activités planifiées sur le territoire de votre commune. Vous y trouverez des informations sur divers événements qui auront lieu prochainement et qui pourront vous intéresser dans l'organisation de votre vie quotidienne.",
},
],
link: [
{
rel: 'manifest',
type: 'application/manifest+json',
href: 'manifest.json',
},
],
},
router: {
base:
process.env.NODE_ENV === 'production' ? process.env.PRODUCTION_PATH : '/',
},
plugins: [
{
src: '@/plugins/vuelayers.js',
},
{
src: '@/plugins/ol-ext.js',
},
{
src: '@/plugins/flatpickr.js',
},
{
src: '@/plugins/vue-js-modal.js',
},
{
src: '@/plugins/floating-vue.js',
},
{
src: '@/plugins/msw.js',
mode: 'client',
},
],
components: true,
buildModules: [
'@nuxtjs/dotenv',
'@nuxtjs/eslint-module',
'@nuxtjs/tailwindcss',
'@nuxtjs/date-fns',
],
modules: [
'@nuxtjs/axios',
'~/modules/vuelayers',
'nuxt-vue-select',
'nuxt-i18n',
'@nuxtjs/svg-sprite',
'@nuxtjs/pwa',
],
build: {
transpile: ['vuelayers', '/@fullcalendar.*/'],
},
svgSprite: {
input: '~/styleguide/assets/icons/',
},
i18n: {
locales: ['fr'],
defaultLocale: 'fr',
vueI18n: {
fallbackLocale: 'fr',
messages: {
fr,
},
},
},
pwa: {
manifest: {
name: 'Geocity',
lang: 'fr',
description: 'Geocity PWA',
display: 'fullscreen',
prefer_related_applications: false,
theme_color: '#008c6f',
},
icon: {
fileName: 'logo-pwa.png',
sizes: [512],
},
},
})