I will first set up productionGzip: true,
I have already written the configuration
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require ("compression-webpack-plugin")
webpackConfig.plugins.push (
)new CompressionWebpackPlugin({
asset: "[path].gz[query]",
algorithm: "gzip",
test: new RegExp(
"\\.(" +
config.build.productionGzipExtensions.join("|") +
")$"
),
threshold: 0, // 10240
minRatio: 0.8,
// deleteOriginalAssets: true
})
)
}
the list of packaged js files is as follows:
nginxnginx.confgzip onreload
app.js401kB
Why not loaded 125KB?
I"m a rookie, and I"ve never done this before, so please give me some advice