From e6e73b636f016c2bfa661411ba9fc73d5dadfd07 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 3 Sep 2019 10:55:06 +0200 Subject: Use different jsonpFunction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids issues when multiple entrypoints try to asynchronously load chunks on the same page Signed-off-by: Julius Härtl --- settings/webpack.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'settings') diff --git a/settings/webpack.js b/settings/webpack.js index d606df22631..cee22bded8d 100644 --- a/settings/webpack.js +++ b/settings/webpack.js @@ -9,7 +9,8 @@ module.exports = { output: { path: path.resolve(__dirname, './js'), publicPath: '/', - filename: 'vue-[name].js?v=[chunkhash]' + filename: 'vue-[name].js?v=[chunkhash]', + jsonpFunction: 'webpackJsonpSettings' }, optimization: { splitChunks: { -- cgit v1.2.3