utilize zopfli compression algorithm for frontend assets

This commit is contained in:
Mike Greiling 2017-05-30 12:18:30 -05:00
parent 9c6109db34
commit 33115f36f7
1 changed files with 2 additions and 0 deletions

View File

@ -226,10 +226,12 @@ if (IS_PRODUCTION) {
}) })
); );
// zopfli requires a lot of compute time and is disabled in CI
if (!NO_COMPRESSION) { if (!NO_COMPRESSION) {
config.plugins.push( config.plugins.push(
new CompressionPlugin({ new CompressionPlugin({
asset: '[path].gz[query]', asset: '[path].gz[query]',
algorithm: 'zopfli',
}) })
); );
} }