Fix settings chunk loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
4a307c1f5f
commit
a6d343b182
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
|
@ -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)
|
||||
|
||||
|
|
|
@ -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: '-',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue