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`:
258258module .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');
396396module .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');
423423module .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: {
You can’t perform that action at this time.
0 commit comments