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

Fix fonts precaching (#3338)

* Fix font urls

* Don't zopfli nonexisting fonts
This commit is contained in:
Paulus Schoutsen
2019-07-10 08:18:04 -07:00
committed by GitHub
parent 628692b2e9
commit 2929db5ba4
3 changed files with 5 additions and 9 deletions

View File

@@ -69,10 +69,6 @@ function copyMapPanel(staticDir) {
function compressStatic(staticDir) {
const staticPath = genStaticPath(staticDir);
const fonts = gulp
.src(staticPath("fonts/**/*.ttf"))
.pipe(zopfli())
.pipe(gulp.dest(staticPath("fonts")));
const polyfills = gulp
.src(staticPath("polyfills/*.js"))
.pipe(zopfli())
@@ -82,7 +78,7 @@ function compressStatic(staticDir) {
.pipe(zopfli())
.pipe(gulp.dest(staticPath("translations")));
return merge(fonts, polyfills, translations);
return merge(polyfills, translations);
}
gulp.task("copy-static", (done) => {