You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/webpack.prod.js

24 lines
472 B
JavaScript

'use strict';
const { merge } = require('webpack-merge');
const TerserPlugin = require('terser-webpack-plugin');
const ProgressPlugin = require('progress-webpack-plugin');
const common = require('./webpack.common');
module.exports = merge(common, {
mode: 'production',
plugins: [
new ProgressPlugin(true),
],
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
minify: TerserPlugin.esbuildMinify,
terserOptions: {},
}),
],
},
});