Fix settings chunk loading

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-08-24 16:23:57 +02:00
parent 4a307c1f5f
commit a6d343b182
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
24 changed files with 8 additions and 40 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
@ -26,8 +26,8 @@ import Router from 'vue-router'
import { generateUrl } from '@nextcloud/router'
// Dynamic loading
const Users = () => import('./views/Users')
const Apps = () => import('./views/Apps')
const Users = () => import(/* webpackChunkName: 'settings-users' */'./views/Users')
const Apps = () => import(/* webpackChunkName: 'settings-apps' */'./views/Apps')
Vue.use(Router)

View File

@ -11,12 +11,13 @@ module.exports = {
output: {
path: path.resolve(__dirname, './js'),
publicPath: '/js/',
filename: 'vue-[name].js?v=[chunkhash]',
jsonpFunction: 'webpackJsonpSettings'
filename: 'vue-[name].js?v=[contenthash]',
chunkFilename: 'vue-[name]-[chunkhash].js?v=[contenthash]',
jsonpFunction: 'webpackJsonpSettings',
},
optimization: {
splitChunks: {
automaticNameDelimiter: '-',
}
}
},
},
}