mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Compress static HTML/XML (#19437)
This commit is contained in:
parent
8f43caee2e
commit
4046534fa8
@ -8,7 +8,10 @@ const zopfliOptions = { threshold: 150 };
|
|||||||
|
|
||||||
const compressDist = (rootDir) =>
|
const compressDist = (rootDir) =>
|
||||||
gulp
|
gulp
|
||||||
.src([`${rootDir}/**/*.{js,json,css,svg}`])
|
.src([
|
||||||
|
`${rootDir}/**/*.{js,json,css,svg,xml}`,
|
||||||
|
`${rootDir}/{authorize,onboarding}.html`,
|
||||||
|
])
|
||||||
.pipe(zopfli(zopfliOptions))
|
.pipe(zopfli(zopfliOptions))
|
||||||
.pipe(gulp.dest(rootDir));
|
.pipe(gulp.dest(rootDir));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user