Use different jsonpFunction
This avoids issues when multiple entrypoints try to asynchronously load chunks on the same page Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1a7310f4b3
commit
e6e73b636f
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'accessibility.js'
|
filename: 'accessibility.js',
|
||||||
|
jsonpFunction: 'webpackJsonpAccessibility'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,8 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'comments.js'
|
filename: 'comments.js',
|
||||||
|
jsonpFunction: 'webpackJsonpComments'
|
||||||
},
|
},
|
||||||
externals: {
|
externals: {
|
||||||
jquery: 'jQuery'
|
jquery: 'jQuery'
|
||||||
|
|
|
@ -10,6 +10,7 @@ module.exports = {
|
||||||
path: path.resolve(__dirname, './js/dist/'),
|
path: path.resolve(__dirname, './js/dist/'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
chunkFilename: 'files_sharing.[id].js?v=[chunkhash]'
|
chunkFilename: 'files_sharing.[id].js?v=[chunkhash]',
|
||||||
|
jsonpFunction: 'webpackJsonpFilesSharing'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'files_trashbin.js'
|
filename: 'files_trashbin.js',
|
||||||
|
jsonpFunction: 'webpackJsonpFilesTrashbin'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'js'),
|
path: path.resolve(__dirname, 'js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'files_versions.js'
|
filename: 'files_versions.js',
|
||||||
|
jsonpFunction: 'webpackJsonpFilesVersions'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js',
|
publicPath: '/js',
|
||||||
filename: 'oauth2.js'
|
filename: 'oauth2.js',
|
||||||
|
jsonpFunction: 'webpackJsonpOauth'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'systemtags.js'
|
filename: 'systemtags.js',
|
||||||
|
jsonpFunction: 'webpackJsonpSystemtags'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'js'),
|
path: path.resolve(__dirname, 'js'),
|
||||||
publicPath: '/js',
|
publicPath: '/js',
|
||||||
filename: 'settings.js'
|
filename: 'settings.js',
|
||||||
|
jsonpFunction: 'webpackJsonpTwofactorBackupcodes'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'updatenotification.js'
|
filename: 'updatenotification.js',
|
||||||
|
jsonpFunction: 'webpackJsonpUpdatenotification'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ module.exports = {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/js/',
|
publicPath: '/js/',
|
||||||
filename: 'workflowengine.js',
|
filename: 'workflowengine.js',
|
||||||
|
jsonpFunction: 'webpackJsonpWorkflowengine'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
|
@ -10,7 +10,8 @@ module.exports = [
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, 'js/dist')
|
path: path.resolve(__dirname, 'js/dist'),
|
||||||
|
jsonpFunction: 'webpackJsonpCore'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
|
@ -9,7 +9,8 @@ module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, './js'),
|
path: path.resolve(__dirname, './js'),
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
filename: 'vue-[name].js?v=[chunkhash]'
|
filename: 'vue-[name].js?v=[chunkhash]',
|
||||||
|
jsonpFunction: 'webpackJsonpSettings'
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
|
|
Loading…
Reference in New Issue