vue 進行 gzip壓縮和服務器如何開啓gzip

使用vue-cli生成的項目,會自動配好相關的設置。 以下圖找到對應的文件,productionGzip改成true,開啓Gzip壓縮 找到下圖的文件,這裏是Gzip的配置 代碼以下:javascript webpackConfig.plugins.push( new CompressionWebpackPlugin({ asset: '[path].gz[query]', algorit
相關文章
相關標籤/搜索