1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 04:39:01 +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

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