Skip to content

Commit 90c55b1

Browse files
docs: fix (#197)
1 parent d8ad4e4 commit 90c55b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ For example we have `assets/images/image.png?foo=bar#hash`:
258258
module.exports = {
259259
plugins: [
260260
new CompressionPlugin({
261-
filename: '[path].gz',
261+
filename: '[path][base].gz',
262262
}),
263263
],
264264
};
@@ -396,7 +396,7 @@ const zlib = require('zlib');
396396
module.exports = {
397397
plugins: [
398398
new CompressionPlugin({
399-
filename: '[path].br',
399+
filename: '[path][base].br',
400400
algorithm: 'brotliCompress',
401401
test: /\.(js|css|html|svg)$/,
402402
compressionOptions: {
@@ -423,14 +423,14 @@ const zlib = require('zlib');
423423
module.exports = {
424424
plugins: [
425425
new CompressionPlugin({
426-
filename: '[path].gz',
426+
filename: '[path][base].gz',
427427
algorithm: 'gzip',
428428
test: /\.js$|\.css$|\.html$/,
429429
threshold: 10240,
430430
minRatio: 0.8,
431431
}),
432432
new CompressionPlugin({
433-
filename: '[path].br',
433+
filename: '[path][base].br',
434434
algorithm: 'brotliCompress',
435435
test: /\.(js|css|html|svg)$/,
436436
compressionOptions: {

0 commit comments

Comments
 (0)