UNPKG

@nodefony/monitoring-bundle

Version:

Nodefony Framework Bundle Monitoring

29 lines (27 loc) 565 B
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { mode: "production", watch: false, optimization: { minimizer: [ new TerserPlugin({ terserOptions: { warnings: true, compress: true }, parallel: true }) ] }, plugins: [ new OptimizeCssAssetsPlugin({ cssProcessorOptions: { discardComments: { removeAll: true } }, canPrint: true }) ] };