When I run yarn build I get a .LICENSE.txt for every .js file in addition to my .js files. I would like it to stop making those files
I am basing my current solution off of this link
Webpack – omit creation of LICENSE.txt files
The .LICENSE is still being created. This is my webpack.config.js code
const commonConfig = require('./webpack-config/webpack.common.config.js');
const developmentConfig = require('./webpack-config/webpack.development.config.js');
const productionConfig = require('./webpack-config/webpack.production.config.js');
const TerserPlugin = require('terser-webpack-plugin');
// - Webpack configurations
// merge configurations
module.exports = merge(
// entryPlus plugin allows us to use dynamic entries
{
entry: entryPlus(entryObjectsArray),
},
// include config needed across all builds
commonConfig,
developmentConfig,
productionConfig,
{
optimization: {
minimizer: [new TerserPlugin({
extractComments: false,
})],
}
}
);