xmpp.chapril.org-conversejs/webpack/webpack.headless.js

24 lines
685 B
JavaScript
Raw Normal View History

/* 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");
module.exports = merge(common, {
entry: {
"converse-headless": "@converse/headless/index.js",
"converse-headless.min": "@converse/headless/index.js",
},
output: {
2022-01-27 12:07:52 +01:00
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",
});