1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

don't compress for CI runs (#1949)

This commit is contained in:
Paulus Schoutsen
2018-11-02 12:15:45 +01:00
committed by GitHub
parent aebd1a1be1
commit eb505d4bd7
2 changed files with 4 additions and 0 deletions

View File

@@ -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$/],