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:
@@ -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$/],
|
||||
|
||||
Reference in New Issue
Block a user