-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build by not using brotli compression yet (#783)
* Include dummy sw files to fix build * No br support yet
- Loading branch information
Showing
4 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,3 @@ jobs: | |
run: script/bootstrap | ||
- name: Build | ||
run: script/build | ||
env: | ||
IS_TEST: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Tasks to compress | ||
// Can not reuse HA compress.js untill min version is 2024.8 | ||
|
||
import gulp from "gulp"; | ||
import zopfli from "gulp-zopfli-green"; | ||
import paths from "./paths.cjs"; | ||
|
||
const zopfliOptions = { threshold: 150 }; | ||
|
||
const compressDist = (rootDir) => | ||
gulp | ||
.src([`${rootDir}/**/*.{js,json,css,svg,xml}`, `${rootDir}/{authorize,onboarding}.html`]) | ||
.pipe(zopfli(zopfliOptions)) | ||
.pipe(gulp.dest(rootDir)); | ||
|
||
gulp.task("compress-app", () => compressDist(paths.app_output_root)); |