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
This commit is contained in:
Julien
2019-01-03 20:51:52 +01:00
committed by GitHub
parent 2658a32e37
commit 8562e486a6

View File

@ -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: [