forked from github/dataease
fix: 组合图gzip压缩
This commit is contained in:
parent
c04468a492
commit
328026ba2c
@ -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,
|
||||
}),
|
||||
]
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user