File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ For example we have `assets/images/image.png?foo=bar#hash`:
258
258
module .exports = {
259
259
plugins: [
260
260
new CompressionPlugin ({
261
- filename: ' [path].gz' ,
261
+ filename: ' [path][base] .gz' ,
262
262
}),
263
263
],
264
264
};
@@ -396,7 +396,7 @@ const zlib = require('zlib');
396
396
module .exports = {
397
397
plugins: [
398
398
new CompressionPlugin ({
399
- filename: ' [path].br' ,
399
+ filename: ' [path][base] .br' ,
400
400
algorithm: ' brotliCompress' ,
401
401
test: / \. (js| css| html| svg)$ / ,
402
402
compressionOptions: {
@@ -423,14 +423,14 @@ const zlib = require('zlib');
423
423
module .exports = {
424
424
plugins: [
425
425
new CompressionPlugin ({
426
- filename: ' [path].gz' ,
426
+ filename: ' [path][base] .gz' ,
427
427
algorithm: ' gzip' ,
428
428
test: / \. js$ | \. css$ | \. html$ / ,
429
429
threshold: 10240 ,
430
430
minRatio: 0.8 ,
431
431
}),
432
432
new CompressionPlugin ({
433
- filename: ' [path].br' ,
433
+ filename: ' [path][base] .br' ,
434
434
algorithm: ' brotliCompress' ,
435
435
test: / \. (js| css| html| svg)$ / ,
436
436
compressionOptions: {
You can’t perform that action at this time.
0 commit comments