fix (webpack): uglify plugin is broken

This commit is contained in:
MickaelK
2024-11-20 16:58:24 +11:00
parent 0da11bf8cd
commit 12b27e3416
2 changed files with 5 additions and 5 deletions

View File

@ -99,10 +99,10 @@ const config = {
if (process.env.NODE_ENV === "production") {
config.plugins.push(new UglifyJSPlugin({
sourceMap: false,
extractComments: true,
}));
// config.plugins.push(new UglifyJSPlugin({
// sourceMap: false,
// extractComments: true,
// }));
config.plugins.push(new CompressionPlugin({
asset: "[path].gz[query]",
algorithm: "gzip",