xmpp.chapril.org-conversejs/webpack/webpack.serve.js
JC Brand cb1f929045 Fixes #3123: Contacts do not show up online until chat is opened with them.
The issue was that nothing was listening to the new `presenceChanged` event.
2023-06-09 20:37:27 +02:00

30 lines
836 B
JavaScript

/* global module, __dirname */
const HTMLWebpackPlugin = require('html-webpack-plugin');
const common = require("./webpack.common.js");
const { merge } = require("webpack-merge");
const path = require("path");
module.exports = merge(common, {
mode: "development",
entry: {
"converse": path.resolve(__dirname, "../src/entry.js"),
},
devtool: "inline-source-map",
devServer: {
static: [ path.resolve(__dirname, '../') ],
port: 3003,
// https: {
// key: './certs/chat.example.org.key',
// cert: './certs/chat.example.org.crt',
// requestCert: true,
// },
},
plugins: [
new HTMLWebpackPlugin({
title: 'Converse.js Dev',
template: 'webpack.html',
filename: 'index.html'
})
],
});