Closed zekageri closed 1 year ago
Something like this
new CompressionPlugin({
filename: '[path][base].gz', // Use the .gz extension for compressed files
algorithm: 'gzip',
test: /\.(js|css|html|svg|json|...)$/, // Compress all types of files
minRatio: Infinity, // Compress all files, regardless of size
deleteOriginalAssets: true, // Delete the original uncompressed files
excludeFromDelete: "Images/**/*"
}),
I want to delete all original assets except my Image folder because Iam working on a microcontroller and I can't parse zipped images. I need a way to keep the zipped versions of my images as well as the original ones.