mirror of
https://github.com/flarum/core.git
synced 2025-08-15 12:54:47 +02:00
Dont generate license.txt
See https://stackoverflow.com/questions/64818489/webpack-omit-creation-of-license-txt-files
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const config = require('flarum-webpack-config');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const merge = require('webpack-merge');
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
const useBundleAnalyzer = process.env.ANALYZER === 'true';
|
||||
|
||||
@@ -21,6 +22,11 @@ module.exports = merge(config(), {
|
||||
},
|
||||
|
||||
plugins,
|
||||
optimization: {
|
||||
minimizer: [new TerserPlugin({
|
||||
extractComments: false,
|
||||
})],
|
||||
},
|
||||
});
|
||||
|
||||
module.exports['module'].rules[0].test = /\.(tsx?|js)$/;
|
||||
|
Reference in New Issue
Block a user