乐趣区

webpack-开启-gzip-打包-减小文件大小

const CompressionWebpackPlugin = require('compression-webpack-plugin');

// vue-cli3 vue.config.js 配置
configureWebpack: config => {

    config.plugins.push(new CompressionWebpackPlugin()
    )
    
}

退出移动版