mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
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.
This commit is contained in:
parent
9cd724a3b4
commit
07ff8cb019
@ -43,7 +43,7 @@ module.exports = merge(sharedConfig, {
|
|||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new CompressionPlugin({
|
new CompressionPlugin({
|
||||||
filename: '[path].gz[query]',
|
filename: '[path][base].gz[query]',
|
||||||
cache: true,
|
cache: true,
|
||||||
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
|
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user