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

30 lines
836 B
JavaScript
Raw Normal View History

/* global module, __dirname */
const HTMLWebpackPlugin = require('html-webpack-plugin');
2020-07-22 10:04:59 +02:00
const common = require("./webpack.common.js");
const { merge } = require("webpack-merge");
const path = require("path");
module.exports = merge(common, {
mode: "development",
2022-05-08 21:01:14 +02:00
entry: {
"converse": path.resolve(__dirname, "../src/entry.js"),
},
devtool: "inline-source-map",
devServer: {
2022-01-27 12:07:52 +01:00
static: [ path.resolve(__dirname, '../') ],
port: 3003,
// https: {
// key: './certs/chat.example.org.key',
// cert: './certs/chat.example.org.crt',
// requestCert: true,
// },
},
plugins: [
new HTMLWebpackPlugin({
2019-10-16 17:17:29 +02:00
title: 'Converse.js Dev',
template: 'webpack.html',
filename: 'index.html'
})
],
});