-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridsome.config.js
78 lines (73 loc) · 1.68 KB
/
gridsome.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
const WorkerPlugin = require('worker-plugin');
module.exports = {
chainWebpack(config) {
const svgRule = config.module.rule('svg');
svgRule
.uses
.clear();
svgRule
.use('vue-svg-loader')
.loader('vue-svg-loader');
config
.plugin('WorkerPlugin')
.use(WorkerPlugin);
},
plugins: [
{
options: {
defaultLocale: 'de',
enablePathRewrite: true,
fallbackLocale: 'de',
locales: [
'de',
'en',
'fr',
'it'
],
messages: {},
pathAliases: {
de: 'de',
en: 'en',
fr: 'fr',
it: 'it'
},
rewriteDefaultLanguage: true
},
use: 'gridsome-plugin-i18n'
},
{
options: {
appleMaskIconColor: '#fdfdfc',
backgroundColor: '#fdfdfc',
cachedFileTypes: 'js,css,png,jpg,jpeg,svg,gif',
categories: [
'lifestyle',
'productivity',
'utilities'
],
description: 'Schweizerische Feiertage',
dir: 'auto',
disableServiceWorker: false,
disableTemplatedUrls: true,
display: 'standalone',
icon: 'src/favicon.png',
lang: 'de-DE',
manifestPath: 'manifest.json',
maskableIcon: true,
msTileColor: '#fdfdfc',
serviceWorkerPath: 'service-worker.js',
shortName: 'feiertaCH',
startUrl: '/',
statusBarStyle: 'default',
themeColor: '#e85a4f',
title: 'feiertaCH'
},
use: 'gridsome-plugin-pwa'
}
],
siteName: 'feiertaCH',
siteUrl: 'https://feiertach.ch',
templates: {
Canton: '/cantons/:id'
}
};