xmpp.chapril.org-conversejs/webpack.serve.js
JC Brand dd609c1cec Get the webpack dev server to work again
This required triggering the `converse-loaded` event in the entry.js
file, which means it won't be triggered for `@converse/headless` when
used in isolation.

Not ideal, but probably ok because consumers of `@converse/headless`
should probably import it into their own project in any case.
2021-05-06 12:07:44 +02:00

22 lines
575 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",
devtool: "inline-source-map",
devServer: {
static: [ path.resolve(__dirname, '') ],
port: 3003
},
plugins: [
new HTMLWebpackPlugin({
title: 'Converse.js Dev',
template: 'webpack.html',
filename: 'index.html'
})
],
});