-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Description
Right now if deleteOriginalAssets is true, the plugin deletes all original files.
I want to exclude files from deletion.
Currently:
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
exclude: "Images" // Exclude whole Images folder but it will not zip them
}),Feature request:
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
excludeFromDeletion: "Images" // Exclude whole Images folder from delete after zipping.
}),Metadata
Metadata
Assignees
Labels
No labels