From 8562e486a61a33f5df0b49ec0fb8a35daca3a9ce Mon Sep 17 00:00:00 2001 From: Julien <39372814+Julien-prrs@users.noreply.github.com> Date: Thu, 3 Jan 2019 20:51:52 +0100 Subject: [PATCH] Avoid conflic between multiple WebPack config - webpack.config.js Changed jsonpFunction name to avoid problems between themes or extensions who also use webpack with the default name --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index b19480655c..1d4dc1bfbc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,7 +20,8 @@ var baseConfig = { output: { path: path.join(__dirname, 'assets/js'), filename: (PRODUCTION_ENV) ? '[name].[hash:8].js' : '[name].js', - chunkFilename: (PRODUCTION_ENV) ? '[name].[hash:8].chunk.js' : '[name].chunk.js' + chunkFilename: (PRODUCTION_ENV) ? '[name].[hash:8].chunk.js' : '[name].chunk.js', + jsonpFunction: 'mailpoetJsonp' }, resolve: { modules: [