第一步:https://juejin.im/post/5abba68cf265da239c7b6bdc (之后你会遇到问题,安装不上插件)
第二步:https://blog.csdn.net/qq_36656410/article/details/101374034 npm install --save-dev compression-webpack-plugin@1.1.12
在安装不上:https://www.cnblogs.com/donghuang/p/10045688.html (看这个)