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

18 lines
547 B
JavaScript

/* global __dirname, module */
const common = require("./webpack.common.js");
const merge = require("webpack-merge");
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
entry: "@converse/headless/headless.js",
output: {
path: path.resolve(__dirname, 'src/headless/dist'), // Output path for generated bundles
filename: 'converse-headless.min.js',
chunkFilename: '[name].js'
},
mode: "production",
devtool: "source-map",
});