back to v5 of compression-webpack-plugin

This commit is contained in:
Proddy
2021-04-10 21:20:10 +02:00
parent 8071fe04bc
commit 9f089bad75
3 changed files with 25 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ const fs = require('fs');
module.exports = function override(config, env) {
if (env === "production") {
// rename the ouput file, we need it's path to be short, for SPIFFS
// rename the output file, we need it's path to be short for LittleFS
config.output.filename = 'js/[id].[chunkhash:4].js';
config.output.chunkFilename = 'js/[id].[chunkhash:4].js';