2019-09-11 17:18:11 +02:00
|
|
|
/* global __dirname, module */
|
|
|
|
const common = require("./webpack.common.js");
|
|
|
|
const path = require('path');
|
2020-07-22 10:04:59 +02:00
|
|
|
const { merge } = require("webpack-merge");
|
2019-09-11 17:18:11 +02:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
2022-05-05 07:03:23 +02:00
|
|
|
entry: {
|
|
|
|
"converse-headless": "@converse/headless/headless.js",
|
|
|
|
"converse-headless.min": "@converse/headless/headless.js",
|
|
|
|
},
|
2019-09-11 17:18:11 +02:00
|
|
|
output: {
|
2022-01-27 12:07:52 +01:00
|
|
|
path: path.resolve(__dirname, '../src/headless/dist'), // Output path for generated bundles
|
2022-05-05 07:03:23 +02:00
|
|
|
filename: "[name].js",
|
2019-09-11 17:18:11 +02:00
|
|
|
chunkFilename: '[name].js'
|
|
|
|
},
|
|
|
|
mode: "production",
|
|
|
|
});
|
|
|
|
|