This commit is contained in:
linfso 2024-05-07 18:14:21 +08:00
parent 89c4636080
commit 0c149e3eff

View File

@ -74,14 +74,14 @@ module.exports = {
'@': resolve('src') '@': resolve('src')
} }
}, },
// plugins: [ plugins: [
// new CompressionPlugin({ new CompressionPlugin({
// test: /\.(js|css|html)?$/i, // 压缩文件格式 test: /\.(js|css|html)?$/i, // 压缩文件格式
// filename: '[path].gz[query]', // 压缩后的文件名 filename: '[path].gz[query]', // 压缩后的文件名
// algorithm: 'gzip', // 使用gzip压缩 algorithm: 'gzip', // 使用gzip压缩
// minRatio: 0.8 // 压缩率小于1才会压缩 minRatio: 0.8 // 压缩率小于1才会压缩
// }) })
// ], ],
}, },
chainWebpack(config) { chainWebpack(config) {
config.plugins.delete('preload') // TODO: need test config.plugins.delete('preload') // TODO: need test