opf/openproject

View on GitHub
frontend/extra-webpack.config.js

Summary

Maintainability
A
0 mins
Test Coverage
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  optimization: {
    minimizer: [
      new TerserPlugin({
        terserOptions: {
          mangle: process.env.OPENPROJECT_ANGULAR_UGLIFY !== 'false',
          keep_classnames: true,
          keep_fnames: true,
        }
      })
    ]
  }
};