utilize zopfli compression algorithm for frontend assets
This commit is contained in:
parent
9c6109db34
commit
33115f36f7
|
@ -226,10 +226,12 @@ if (IS_PRODUCTION) {
|
|||
})
|
||||
);
|
||||
|
||||
// zopfli requires a lot of compute time and is disabled in CI
|
||||
if (!NO_COMPRESSION) {
|
||||
config.plugins.push(
|
||||
new CompressionPlugin({
|
||||
asset: '[path].gz[query]',
|
||||
algorithm: 'zopfli',
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue