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>
14 lines
284 B
JavaScript
14 lines
284 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = {
|
|
entry: path.join(__dirname, 'src', 'comments.js'),
|
|
output: {
|
|
path: path.resolve(__dirname, './js'),
|
|
publicPath: '/js/',
|
|
filename: 'comments.js',
|
|
jsonpFunction: 'webpackJsonpComments'
|
|
},
|
|
externals: {
|
|
jquery: 'jQuery'
|
|
}
|
|
}
|