Skip to content

Commit

Permalink
fix: disable file compression MP-212
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed May 14, 2024
1 parent 350155b commit b69ef8a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build/webpack.client.base.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { merge } = require('webpack-merge');
var assetsPath = require('./assets-path');
var baseWebpackConfig = require('./webpack.base.conf');
var CompressionPlugin = require('compression-webpack-plugin');
// var CompressionPlugin = require('compression-webpack-plugin');
var SvgStorePlugin = require('webpack-svgstore-plugin');
var VueSSRClientPlugin = require('vue-server-renderer/client-plugin');

Expand Down Expand Up @@ -43,18 +43,18 @@ module.exports = merge(baseWebpackConfig, {
prefix: 'icon-',
}),
// file compression
...(isProd ? [
// gzip compression
new CompressionPlugin({
...compressionOptions,
}),
// brotli compression
new CompressionPlugin({
...compressionOptions,
filename: "[path][base].br",
algorithm: "brotliCompress",
}),
] : []),
// ...(isProd ? [
// gzip compression
// new CompressionPlugin({
// ...compressionOptions,
// }),
// brotli compression
// new CompressionPlugin({
// ...compressionOptions,
// filename: "[path][base].br",
// algorithm: "brotliCompress",
// }),
// ] : []),
...(isProd ? [] : [new HardSourceWebpackPlugin.ExcludeModulePlugin([
// Due to how some loaders emit assets, certain assets are not emitted
// on repeated builds with those loaders and hard-source together.
Expand Down

0 comments on commit b69ef8a

Please sign in to comment.