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.
lolsob-rspec
Claire 2021-06-25 04:45:04 +02:00 committed by GitHub
parent bc205aba48
commit 6993e51247
1 changed files with 1 additions and 1 deletions

View File

@ -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)$/,
}),