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

24 lines
607 B
JavaScript

/* global module */
const merge = require("webpack-merge");
const common = require("./webpack.common.js");
const HTMLWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
mode: "development",
devtool: "inline-source-map",
devServer: {
contentBase: "./"
},
plugins: [
new HTMLWebpackPlugin({
title: 'Converse.js Dev',
template: 'webpack.html'
}),
new HTMLWebpackPlugin({
filename: 'tests.html',
title: 'Converse.js Tests',
template: 'tests.html'
})
],
});