-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
51 lines (50 loc) · 1.39 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
/* eslint-disable nuxt/no-cjs-in-config */
const themes = require('./themes')
module.exports = {
ssr: false,
target: 'static',
telemetry: false,
head: {
title: 'ftw-ui',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
css: [],
plugins: [],
components: [
{
path: '~/lib/components',
pathPrefix: false,
},
],
vuetify: { theme: { options: { customProperties: true }, themes } },
buildModules: ['@nuxtjs/vuetify'],
modules: ['@nuxt/http', '@nuxtjs/i18n'],
i18n: {
strategy: 'prefix',
locales: [
{ code: 'de', iso: 'de-CH', file: 'de.js', name: 'Deutsch', dateFormat: 'dd.MM.yyyy' },
{ code: 'en', iso: 'en', file: 'en.js', name: 'English', dateFormat: 'dd/MM/yyyy' },
{ code: 'fr', iso: 'fr-CH', file: 'fr.js', name: 'Français', dateFormat: 'dd.MM.yyyy' },
],
defaultLocale: 'de',
detectBrowserLanguage: {
useCookie: true,
fallbackLocale: 'de',
alwaysRedirect: true,
},
},
build: {
babel: {
plugins: [['@babel/plugin-proposal-private-property-in-object', { loose: true }]],
},
},
}