Browse Source

Add brotli compression (#19025)

closed-social-glitch-2
Yurii Izorkin 1 year ago
committed by GitHub
parent
commit
7972e5981c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      config/webpack/production.js

+ 6
- 0
config/webpack/production.js View File

@ -34,6 +34,12 @@ module.exports = merge(sharedConfig, {
cache: true,
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
}),
new CompressionPlugin({
filename: '[path][base].br[query]',
algorithm: 'brotliCompress',
cache: true,
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
}),
new BundleAnalyzerPlugin({ // generates report.html
analyzerMode: 'static',
openAnalyzer: false,

Loading…
Cancel
Save