2018-11-25 22:02:22 +01:00
|
|
|
module.exports = {
|
|
|
|
configureWebpack: {
|
2020-06-19 21:35:05 +02:00
|
|
|
devtool: 'source-map',
|
2019-10-16 20:25:10 +02:00
|
|
|
},
|
2021-07-25 12:55:31 +02:00
|
|
|
chainWebpack: config => {
|
|
|
|
// Don't prefetch all languages
|
|
|
|
config.plugin('prefetch').tap(options => {
|
|
|
|
options[0].fileBlacklist = options[0].fileBlacklist || []
|
|
|
|
options[0].fileBlacklist.push(/lang(.)+?\.js$/)
|
|
|
|
options[0].fileBlacklist.push(/lang(.)+?\.js.map$/)
|
|
|
|
return options
|
|
|
|
})
|
|
|
|
},
|
2019-12-02 18:59:43 +01:00
|
|
|
productionSourceMap: false,
|
2019-10-16 20:25:10 +02:00
|
|
|
pwa: {
|
|
|
|
name: 'Vikunja',
|
2020-06-12 20:47:31 +02:00
|
|
|
themeColor: '#1973ff',
|
2019-10-16 20:25:10 +02:00
|
|
|
appleMobileWebAppCapable: 'yes',
|
|
|
|
workboxPluginMode: 'InjectManifest',
|
|
|
|
workboxOptions: {
|
|
|
|
importWorkboxFrom: 'local',
|
2020-06-19 21:35:05 +02:00
|
|
|
swSrc: 'src/ServiceWorker/sw.js',
|
2019-10-16 20:25:10 +02:00
|
|
|
},
|
2020-06-19 21:35:05 +02:00
|
|
|
iconPaths: {
|
2019-10-16 20:25:10 +02:00
|
|
|
favicon32: 'images/icons/favicon-32x32.png',
|
|
|
|
favicon16: 'images/icons/favicon-16x16.png',
|
|
|
|
appleTouchIcon: 'images/icons/apple-touch-icon-152x152.png',
|
|
|
|
maskIcon: 'images/icons/safari-pinned-tab.svg',
|
|
|
|
msTileImage: 'images/icons/msapplication-icon-144x144.png',
|
|
|
|
},
|
|
|
|
manifestOptions: {
|
2021-07-17 23:21:46 +02:00
|
|
|
'icons': [
|
2019-10-16 20:25:10 +02:00
|
|
|
{
|
2021-07-17 23:21:46 +02:00
|
|
|
'src': './images/icons/android-chrome-192x192.png',
|
|
|
|
'sizes': '192x192',
|
|
|
|
'type': 'image/png',
|
2019-10-16 20:25:10 +02:00
|
|
|
},
|
|
|
|
{
|
2021-07-17 23:21:46 +02:00
|
|
|
'src': './images/icons/android-chrome-512x512.png',
|
|
|
|
'sizes': '512x512',
|
|
|
|
'type': 'image/png',
|
2020-11-12 21:24:08 +01:00
|
|
|
},
|
|
|
|
{
|
2021-07-17 23:21:46 +02:00
|
|
|
'src': './images/icons/icon-maskable.png',
|
|
|
|
'sizes': '1024x1024',
|
|
|
|
'type': 'image/png',
|
|
|
|
'purpose': 'maskable',
|
2020-11-12 21:24:08 +01:00
|
|
|
},
|
2019-10-16 20:25:10 +02:00
|
|
|
],
|
2020-07-05 21:19:45 +02:00
|
|
|
shortcuts: [
|
|
|
|
{
|
|
|
|
name: 'Overview',
|
|
|
|
url: '/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Namespaces And Lists Overview',
|
|
|
|
short_name: 'Namespaces & Lists',
|
|
|
|
url: '/namespaces',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Tasks Next Week',
|
|
|
|
short_name: 'Next Week',
|
|
|
|
url: '/tasks/by/week',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Tasks Next Month',
|
|
|
|
short_name: 'Next Month',
|
|
|
|
url: '/tasks/by/month',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Teams Overview',
|
|
|
|
short_name: 'Teams',
|
|
|
|
url: '/teams',
|
2021-07-17 23:21:46 +02:00
|
|
|
},
|
|
|
|
],
|
2019-10-16 20:25:10 +02:00
|
|
|
},
|
2021-07-17 23:21:46 +02:00
|
|
|
},
|
2018-11-25 22:02:22 +01:00
|
|
|
}
|