diff --git a/docker/templates/default.conf.template b/docker/templates/default.conf.template index 06526ecc3..fab6e950b 100644 --- a/docker/templates/default.conf.template +++ b/docker/templates/default.conf.template @@ -18,35 +18,12 @@ server { application/atom+xml application/geo+json application/javascript - application/json - application/ld+json - application/manifest+json - application/rdf+xml - application/rss+xml application/x-javascript - application/xhtml+xml - application/xml - font/eot - font/otf - font/ttf - image/svg+xml - text/css - text/javascript - text/plain - text/xml; - - brotli on; - brotli_comp_level 6; - brotli_types - application/atom+xml - application/geo+json - application/javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml - application/x-javascript application/xhtml+xml application/xml font/eot diff --git a/webpack.config.js b/webpack.config.js index 1625a4728..a443ef3ce 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,7 +7,6 @@ const CopyPlugin = require("copy-webpack-plugin"); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); const webpack = require("webpack"); const CompressionPlugin = require("compression-webpack-plugin"); -const zlib = require("zlib"); let userConfig = {}; @@ -116,27 +115,7 @@ module.exports = { new webpack.ProvidePlugin({ process: "process/browser.js", }), - new CompressionPlugin({ - filename: "[path][base].gz", - algorithm: "gzip", - test: /\.(js|css|html|svg)$/, - threshold: 10240, - minRatio: 0.8, - deleteOriginalAssets: false, - }), - new CompressionPlugin({ - filename: "[path][base].br", - algorithm: "brotliCompress", - test: /\.(js|css|html|svg)$/, - compressionOptions: { - params: { - [zlib.constants.BROTLI_PARAM_QUALITY]: 11, - }, - }, - threshold: 10240, - minRatio: 0.8, - deleteOriginalAssets: false, - }), + new CompressionPlugin(), ], devtool: "source-map", module: {