The difference is that Webpack compression compresses your files one - time - at build time. These compressed versions are then saved to disk.
Express plugins, on the other hand, compress your files at the request point . Some packages may have built-in caching, so performance limits occur only once (or rarely), but usually the difference is that this will happen when the HTTP request is answered.
zip , - (, Nginx) gzip , Node ( C).
- Webpack .gz . , express-static-gzip, , gzipping . , Node.js HTTP-, / .
Webpack , ( , , ), , , , HTTP, , .