Hi,
Don't do it! Brotli is VERY BAD for performance! The compression ratio is improved compared to gzip, however the compression speed (i.e. how fast it can shrink say 100k into 10k) is QUADRUPLE that of gzip-6. That means, effectively, it takes FOUR times longer to send files from your web server to the end user.
Brotli works well for Google, who use Tilera accelerated CPUs to do the compression over lots of cores, but for everybody else using Nginx/Apache/Litespeed etc, stick to gzip.
In fact, if you want to get a speed improvement, you might consider dropping your gzip compression ratio from the default level of 6 down to 2. It sounds crazy because you're not compressing as low and therefore sending more data over the network, however the response time between gzip-6 and gzip-2 is almost halved.
Take a look at some Brotli benchmarks here:
https://www.opencpu.org/posts/brotli-benchmarks/In any case, to answer your question. If you did want to stick with Brotli, I'm afraid you'd have to reinstall the module every time you rebuild Apache using CWP.