webpack.config.js: update compression plugin to succeed build
This commit is contained in:
parent
95723f2817
commit
4f44ec3e22
1 changed files with 2 additions and 8 deletions
|
|
@ -91,17 +91,11 @@ const plugins = [
|
|||
|
||||
/* Only minimize when in production mode */
|
||||
if (production) {
|
||||
/* Rename output files when minimizing */
|
||||
output.filename = "[name].min.js";
|
||||
|
||||
plugins.unshift(
|
||||
new CompressionPlugin({
|
||||
asset: "[path].gz[query]",
|
||||
test: /\.(js|html)$/,
|
||||
minRatio: 0.9,
|
||||
test: /\.(css|js|html)$/,
|
||||
deleteOriginalAssets: true,
|
||||
})
|
||||
);
|
||||
}));
|
||||
}
|
||||
|
||||
var babel_loader = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue