The fourth section of this article introduces compression-webpack-plugin, which seems to perform very well (the code changes from 3.9m to 115k after gzip is turned on, and the request time changes from 10s to 100ms), but it seems that few projects use it.
我想大声告诉你2017-05-19 10:15:00
Use nginx directly as a reverse proxy. Configuring Gzip in nginx is more flexible
迷茫2017-05-19 10:15:00
Can this plug-in only be used on the server side of node? Is it not suitable for static packaging webpack?