From: Claire Date: Fri, 25 Jun 2021 02:45:04 +0000 (+0200) Subject: Fix compression-webpack-plugin configuration (#16356) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=07ff8cb019994bcfa234c33484ca9f4bf1366fa8;p=mastodon.git Fix compression-webpack-plugin configuration (#16356) compression-webpack-plugin 6.0.0 has changed how filenames were generated, so from #14892 onward (Mastodon v3.3.0 and later), compressed files were output to a file named `.gz` instead of the correct filenames. --- diff --git a/config/webpack/production.js b/config/webpack/production.js index f1d0dabae..cd3d01035 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -43,7 +43,7 @@ module.exports = merge(sharedConfig, { plugins: [ new CompressionPlugin({ - filename: '[path].gz[query]', + filename: '[path][base].gz[query]', cache: true, test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/, }),