mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Updated compression plugin.
This commit is contained in:
parent
ae67b55bf1
commit
a8469d5279
3 changed files with 45 additions and 146 deletions
|
@ -124,7 +124,7 @@ Encore
|
|||
|
||||
if (Encore.isProduction()) {
|
||||
Encore.addPlugin(new CompressionPlugin({
|
||||
filename: '[path].br[query]',
|
||||
filename: '[path][base].br',
|
||||
algorithm: 'brotliCompress',
|
||||
test: /\.(js|css|html|svg)$/,
|
||||
compressionOptions: {
|
||||
|
@ -137,7 +137,7 @@ if (Encore.isProduction()) {
|
|||
}))
|
||||
|
||||
.addPlugin(new CompressionPlugin({
|
||||
filename: '[path].gz[query]',
|
||||
filename: '[path][base].gz',
|
||||
algorithm: 'gzip',
|
||||
test: /\.(js|css|html|svg)$/,
|
||||
deleteOriginalAssets: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue