2019-08-23 14:23:12 +02:00
|
|
|
/* global module */
|
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: {
|
2019-09-12 12:10:50 +02:00
|
|
|
publicPath: '/dist/', // URL base path for all assets
|
2019-09-04 18:58:10 +02:00
|
|
|
filename: 'converse.js',
|
2019-08-23 14:23:12 +02:00
|
|
|
},
|
2019-09-04 18:58:10 +02:00
|
|
|
optimization: {
|
|
|
|
minimize: false,
|
|
|
|
},
|
|
|
|
devtool: 'source-map',
|
2019-09-12 11:16:37 +02:00
|
|
|
plugins: [new MiniCssExtractPlugin({filename: 'converse.css'})]
|
2019-08-23 13:19:05 +02:00
|
|
|
});
|