Skip to content

Commit f9bf170

Browse files
committed
SF-3513 Add static brotli pre-compression on build
1 parent 7bad78c commit f9bf170

File tree

2 files changed

+164
-0
lines changed

2 files changed

+164
-0
lines changed

src/SIL.XForge.Scripture/ClientApp/package-lock.json

Lines changed: 161 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/SIL.XForge.Scripture/ClientApp/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"storybook": "ng run SIL.XForge.Scripture:storybook",
3030
"build-storybook": "ng run SIL.XForge.Scripture:build-storybook",
3131
"chromatic": "chromatic --exit-zero-on-changes",
32+
"compress": "gzipper compress ./dist/browser --brotli",
33+
"postbuild": "npm run compress",
3234
"postinstall": "patch-package"
3335
},
3436
"private": true,
@@ -136,6 +138,7 @@
136138
"eslint-plugin-jsdoc": "^60.5.0",
137139
"eslint-plugin-prettier": "^5.5.4",
138140
"eslint-plugin-storybook": "10.0.5",
141+
"gzipper": "^8.2.1",
139142
"husky": "^7.0.4",
140143
"jasmine-core": "~3.9.0",
141144
"karma": "~6.3.19",

0 commit comments

Comments
 (0)