Webpacker: Adding support for compression with Brotli

Created on 9 May 2019  路  4Comments  路  Source: rails/webpacker

Hey ! 馃憢

As far as I know, Webpacker is using https://github.com/webpack-contrib/compression-webpack-plugin to generate the gzip compressed files.

This plugin added the support for Brotli https://github.com/webpack-contrib/compression-webpack-plugin/pull/119 and I think it's could be great to add it in Webpacker

Adding he proper documentation for nginx headers and an opt-out configuration in the webpacker.yml could be great too.

What do you think ? I could open a PR if you're ok with this feature !

Thank you in advance

All 4 comments

Hey @guillaumebriday, I really like your idea. What do you think about submitting a PR were this can be discussed further? I think once there's a PR it becomes more real and others can maybe already use it in their configs.

As this feature is only available after node.js 11.7.0 and later this should only be the default for compatible setups, since webpacker (so far) works with node.js 6 and above, while 10 is the currently active LTS release and 11 is EOL. https://github.com/nodejs/Release#release-schedule

What do you think? :)

Ok I'll will try to open a PR soon,

and yes, this should be the default only for compatible systems !

Thank you

I think this issue can be closed?

Sure ! Thanks @clupprich

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iChip picture iChip  路  3Comments

FrankFang picture FrankFang  路  3Comments

vtno picture vtno  路  3Comments

suhomlineugene picture suhomlineugene  路  3Comments

towry picture towry  路  3Comments