Skip to content

Commit

Permalink
fix!: default filename is [path][base].br for brotli (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue authored May 17, 2022
1 parent 5db3255 commit db04e14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ class CompressionPlugin {
exclude,
algorithm = "gzip",
compressionOptions = /** @type {CompressionOptions<T>} */ ({}),
filename = "[path][base].gz",
filename = (options || {}).algorithm === "brotliCompress"
? "[path][base].br"
: "[path][base].gz",
threshold = 0,
minRatio = 0.8,
deleteOriginalAssets = false,
Expand Down

0 comments on commit db04e14

Please sign in to comment.