2019-09-04 18:58:10 +02:00
|
|
|
/* 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: {
|
2019-10-16 17:17:29 +02:00
|
|
|
contentBase: "./"
|
2019-09-04 18:58:10 +02:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new HTMLWebpackPlugin({
|
2019-10-16 17:17:29 +02:00
|
|
|
title: 'Converse.js Dev',
|
2019-09-04 18:58:10 +02:00
|
|
|
template: 'webpack.html'
|
2020-04-21 20:17:46 +02:00
|
|
|
}),
|
|
|
|
new HTMLWebpackPlugin({
|
|
|
|
filename: 'tests.html',
|
|
|
|
title: 'Converse.js Tests',
|
|
|
|
template: 'tests.html'
|
2019-09-04 18:58:10 +02:00
|
|
|
})
|
|
|
|
],
|
|
|
|
});
|