e6e73b636f
This avoids issues when multiple entrypoints try to asynchronously load chunks on the same page Signed-off-by: Julius Härtl <jus@bitgrid.net>
20 lines
558 B
JavaScript
20 lines
558 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: {
|
|
'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'),
|
|
'settings-admin-security': path.join(__dirname, 'src', 'main-admin-security'),
|
|
'settings-personal-security': path.join(__dirname, 'src', 'main-personal-security')
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, './js'),
|
|
publicPath: '/',
|
|
filename: 'vue-[name].js?v=[chunkhash]',
|
|
jsonpFunction: 'webpackJsonpSettings'
|
|
},
|
|
optimization: {
|
|
splitChunks: {
|
|
automaticNameDelimiter: '-',
|
|
}
|
|
}
|
|
}
|