Commit 34436b7f authored by JC Brand's avatar JC Brand

Add terser minifier for webpack

parent 98963366
......@@ -19,7 +19,6 @@ SASS ?= ./node_modules/.bin/node-sass
SED ?= sed
SPHINXBUILD ?= ./bin/sphinx-build
SPHINXOPTS =
UGLIFYJS ?= node_modules/.bin/uglifyjs
XGETTEXT = xgettext
......
This diff is collapsed.
/* global __dirname, module */
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
bootstrap_ignore_modules = ['carousel', 'scrollspy'];
......@@ -16,6 +17,10 @@ module.exports = {
externals: [{
"window": "window"
}],
optimization: {
minimize: true,
minimizer: [new TerserPlugin()]
},
watchOptions: {
ignored: [/dist/, /spec/, /.*\~/]
},
......
......@@ -11,9 +11,6 @@ module.exports = merge(prod, {
publicPath: ASSET_PATH,
filename: 'converse.js',
},
optimization: {
minimize: false,
},
devtool: 'source-map',
plugins: [
new MiniCssExtractPlugin({filename: '../dist/converse.css'}),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment