2021-05-06 11:44:16 +02:00
|
|
|
/* global module, __dirname */
|
2019-09-04 18:58:10 +02:00
|
|
|
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");
|
2021-05-06 11:44:16 +02:00
|
|
|
const path = require("path");
|
2019-09-04 18:58:10 +02:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
mode: "development",
|
2022-05-08 21:01:14 +02:00
|
|
|
entry: {
|
|
|
|
"converse": path.resolve(__dirname, "../src/entry.js"),
|
|
|
|
},
|
2019-09-04 18:58:10 +02:00
|
|
|
devtool: "inline-source-map",
|
|
|
|
devServer: {
|
2022-01-27 12:07:52 +01:00
|
|
|
static: [ path.resolve(__dirname, '../') ],
|
2023-06-09 20:37:27 +02:00
|
|
|
port: 3003,
|
|
|
|
// https: {
|
|
|
|
// key: './certs/chat.example.org.key',
|
|
|
|
// cert: './certs/chat.example.org.crt',
|
|
|
|
// requestCert: true,
|
|
|
|
// },
|
2019-09-04 18:58:10 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new HTMLWebpackPlugin({
|
2019-10-16 17:17:29 +02:00
|
|
|
title: 'Converse.js Dev',
|
2021-05-06 11:44:16 +02:00
|
|
|
template: 'webpack.html',
|
|
|
|
filename: 'index.html'
|
2019-09-04 18:58:10 +02:00
|
|
|
})
|
|
|
|
],
|
|
|
|
});
|