webpack gzip for prod AND dev
This commit is contained in:
@@ -3,6 +3,7 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const { VueLoaderPlugin } = require('vue-loader')
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
const ExtraneousFileCleanupPlugin = require('webpack-extraneous-file-cleanup-plugin');
|
||||
const CompressionPlugin = require("compression-webpack-plugin");
|
||||
|
||||
const utils = require('./utils')
|
||||
|
||||
@@ -154,5 +155,6 @@ module.exports = {
|
||||
paths: [utils.resolve(themePath + '/assets/dist/')],
|
||||
minBytes: 4096
|
||||
}),
|
||||
new CompressionPlugin(),
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user