Merge pull request #7830 from dataease/pr@dev_one_dot_x

fix: 组合图gzip压缩
This commit is contained in:
dataeaseShu 2024-01-25 15:25:29 +08:00 committed by GitHub
commit 69c8327562
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
const webpack = require('webpack')
const CompressionPlugin = require('compression-webpack-plugin');
const path = require('path')
const utils = require('./utils')
const CopyPlugin = require("copy-webpack-plugin");
@ -93,5 +94,8 @@ module.exports = {
new CopyPlugin([
{from: 'src/icons/svg/'}
]),
new CompressionPlugin({
test: /\.js(\?.*)?$/i,
}),
]
}

View File

@ -33,6 +33,7 @@
"autoprefixer": "^7.1.2",
"babel-loader": "^8.0.6",
"chalk": "^2.0.1",
"compression-webpack-plugin": "^6.0.0",
"copy-webpack-plugin": "^4.6.0",
"css-loader": "^0.28.0",
"element-ui": "2.15.7",