Skip to content

Commit

Permalink
ci: block creation of LICENSE.txt files now replaced with .license files
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Jul 29, 2024
1 parent c0b4e57 commit dd97e3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webpack.js
Original file line number Diff line number Diff line change
@@ -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')

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd97e3f

Please sign in to comment.