From dd97e3ffbad94ce8aa11b810e1690d439c51305b Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 29 Jul 2024 10:39:08 +0200 Subject: [PATCH] ci: block creation of LICENSE.txt files now replaced with .license files Signed-off-by: Andy Scherzinger --- webpack.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webpack.js b/webpack.js index e79c62dd1..e5c68af6e 100644 --- a/webpack.js +++ b/webpack.js @@ -1,6 +1,7 @@ const path = require('path') const webpack = require('webpack') const webpackConfig = require('@nextcloud/webpack-vue-config') +const TerserPlugin = require('terser-webpack-plugin') const WebpackSPDXPlugin = require('./build-js/WebpackSPDXPlugin.js') const webpackRules = require('@nextcloud/webpack-vue-config/rules') @@ -88,6 +89,16 @@ webpackConfig.plugins.push( }) ) +// block creation of LICENSE.txt files now replaced with .license files +webpackConfig.optimization.minimizer = [new TerserPlugin({ + extractComments: false, + terserOptions: { + format: { + comments: false, + }, + }, +})] + webpackConfig.plugins = [ ...webpackConfig.plugins, // Generate reuse license files