2019-09-13 13:29:49 +02:00
|
|
|
/* global module, process */
|
2019-08-23 13:19:05 +02:00
|
|
|
const merge = require("webpack-merge");
|
2019-09-04 18:58:10 +02:00
|
|
|
const prod = require("./webpack.prod.js");
|
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
2019-08-23 13:19:05 +02:00
|
|
|
|
2019-09-04 18:58:10 +02:00
|
|
|
module.exports = merge(prod, {
|
|
|
|
output: {
|
|
|
|
filename: 'converse.js',
|
2019-08-23 14:23:12 +02:00
|
|
|
},
|
2020-02-13 16:09:51 +01:00
|
|
|
optimization: {
|
|
|
|
minimize: false,
|
|
|
|
},
|
2019-09-04 18:58:10 +02:00
|
|
|
devtool: 'source-map',
|
2019-09-13 13:29:49 +02:00
|
|
|
plugins: [
|
2019-09-13 15:05:34 +02:00
|
|
|
new MiniCssExtractPlugin({filename: '../dist/converse.css'}),
|
2019-09-13 13:29:49 +02:00
|
|
|
],
|
2019-08-23 13:19:05 +02:00
|
|
|
});
|