Skip to content

Commit

Permalink
Client: Fix CompressionWebpackPlugin configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
winwiz1 committed Nov 28, 2020
1 parent dc8b295 commit a281a2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ const getWebpackConfig = (env, argv) => {
}));
config.plugins.push(
new CompressionPlugin({
filename: '[path].br[query]',
algorithm: 'brotliCompress',
filename: "[path][base].br",
algorithm: "brotliCompress",
test: /\.js$|\.css$|\.html$/,
compressionOptions: {
level: 11,
Expand All @@ -207,7 +207,7 @@ const getWebpackConfig = (env, argv) => {
}));
config.plugins.push(
new CompressionPlugin({
filename: "[path].gz[query]",
filename: "[path][base].gz",
algorithm: "gzip",
test: /\.js$|\.css$|\.html$/,
threshold: 10240,
Expand Down

0 comments on commit a281a2f

Please sign in to comment.