Do you want to request a feature or report a bug?
Feature
What is the current behavior?
No gzip on js files
If the current behavior is a bug, please provide the steps to reproduce.
Setup project with preact-cli 1.4.1. Open localhost:8080 and check the network tab in Chrome
What is the expected behavior?
Gzip enabled
Please mention other relevant information.
As of now we are not compressing the js bundle. Probably we add an option to the build command so the use can choose if he wants gzipping or not.
/cc @kristoferbaxter @developit
inb4 we should also do brotli
We have the option of using Zopfli as well. @kristoferbaxter can give more insights on this.
My 2 cents:
npm run serve I don't think there's an h2 alternative for simplehttp2server, but we could use serve instead of superstatic. I think they might be looking into supporting the same config format?
We can go with zopfli + brotli for this.
COnsider using wasm version (if any) instead of the native C version. It would save everyone a tons of time
Makes sense @thangngoc89, consider:
https://github.com/dfrankland/wasm-brotli
https://github.com/dfrankland/wasm-zopfli
Most helpful comment
My 2 cents:
npm run serve