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>
23 lines
474 B
JavaScript
23 lines
474 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: path.join(__dirname, 'src', 'workflowengine.js'),
|
|
output: {
|
|
path: path.resolve(__dirname, './js'),
|
|
publicPath: '/js/',
|
|
filename: 'workflowengine.js',
|
|
jsonpFunction: 'webpackJsonpWorkflowengine'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.handlebars/,
|
|
loader: "handlebars-loader",
|
|
query: {
|
|
extensions: '.handlebars',
|
|
helperDirs: path.join(__dirname, 'src/hbs_helpers'),
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|