Commit b8458dc8 authored by Mike Greiling's avatar Mike Greiling

remove zopfli compression temporarily until a better solution is found

parent 977e2327
...@@ -277,14 +277,9 @@ if (IS_PRODUCTION) { ...@@ -277,14 +277,9 @@ if (IS_PRODUCTION) {
}) })
); );
// zopfli requires a lot of compute time and is disabled in CI // compression can require a lot of compute time and is disabled in CI
if (!NO_COMPRESSION) { if (!NO_COMPRESSION) {
// gracefully fall back to gzip if `node-zopfli` is unavailable (e.g. in CentOS 6) config.plugins.push(new CompressionPlugin());
try {
config.plugins.push(new CompressionPlugin({ algorithm: 'zopfli' }));
} catch(err) {
config.plugins.push(new CompressionPlugin({ algorithm: 'gzip' }));
}
} }
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment