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",
|
|
|
|
devtool: "inline-source-map",
|
|
|
|
devServer: {
|
2022-01-27 12:07:52 +01:00
|
|
|
static: [ path.resolve(__dirname, '../') ],
|
2022-02-06 16:15:04 +01:00
|
|
|
port: 3003
|
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
|
|
|
})
|
|
|
|
],
|
|
|
|
});
|