Skip to content

Commit 503491d

Browse files
feat: use brotli and replace for precompress (#583)
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 189ad76 commit 503491d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

juno.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,18 @@ export default defineConfig({
253253
headers,
254254
redirects
255255
},
256+
precompress: [
257+
{
258+
pattern: "**/*.+(js|mjs|css)",
259+
algorithm: "brotli",
260+
mode: "replace"
261+
},
262+
{
263+
pattern: "**/*.html",
264+
algorithm: "brotli",
265+
mode: "both"
266+
}
267+
],
256268
predeploy: ["npm run build"]
257269
},
258270
orbiter: {

0 commit comments

Comments
 (0)