xmpp.chapril.org-conversejs/webpack/webpack.headless.js
2023-01-17 12:33:08 +01:00

24 lines
691 B
JavaScript

/* global __dirname, module */
const common = require("./webpack.common.js");
const path = require('path');
const { merge } = require("webpack-merge");
module.exports = merge(common, {
entry: {
"converse-headless": "@converse/headless/headless.js",
"converse-headless.min": "@converse/headless/headless.js",
},
output: {
path: path.resolve(__dirname, '../src/headless/dist'), // Output path for generated bundles
filename: "[name].js",
chunkFilename: '[name].js',
globalObject: 'this',
publicPath: '',
library: {
name: 'converse',
type: 'umd',
},
},
mode: "production",
});