diff --git a/hassio/webpack.config.js b/hassio/webpack.config.js index 8ce545eac9..34c0f578b2 100644 --- a/hassio/webpack.config.js +++ b/hassio/webpack.config.js @@ -4,6 +4,7 @@ const config = require("./config.js"); const { babelLoaderConfig } = require("../config/babel.js"); const isProdBuild = process.env.NODE_ENV === "production"; +const isCI = process.env.CI === "true"; const chunkFilename = isProdBuild ? "chunk.[chunkhash].js" : "[name].chunk.js"; module.exports = { @@ -37,6 +38,7 @@ module.exports = { }, }), isProdBuild && + isCI && new CompressionPlugin({ cache: true, exclude: [/\.js\.map$/, /\.LICENSE$/, /\.py$/, /\.txt$/], diff --git a/webpack.config.js b/webpack.config.js index fef0c37fc2..87b7105aed 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,6 +15,7 @@ if (!version) { throw Error("Version not found"); } const VERSION = version[0]; +const isCI = process.env.CI === "true"; const generateJSPage = (entrypoint, latestBuild) => { return new HtmlWebpackPlugin({ @@ -159,6 +160,7 @@ function createConfig(isProdBuild, latestBuild) { path.resolve(__dirname, "src/util/empty.js") ), isProdBuild && + !isCI && new CompressionPlugin({ cache: true, exclude: [/\.js\.map$/, /\.LICENSE$/, /\.py$/, /\.txt$/],