advanced aggregate, webpack gzip
This commit is contained in:
@@ -6,6 +6,7 @@ const baseConfig = require('./webpack.config.base')
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const CompressionPlugin = require("compression-webpack-plugin");
|
||||
|
||||
module.exports = merge(baseConfig, {
|
||||
mode: 'production',
|
||||
@@ -74,6 +75,7 @@ module.exports = merge(baseConfig, {
|
||||
}),
|
||||
new BundleAnalyzerPlugin({
|
||||
'analyzerMode': 'static'
|
||||
})
|
||||
}),
|
||||
new CompressionPlugin(),
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user