Skip to content

Commit

Permalink
Don't pre-compress json config
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Jan 7, 2024
1 parent 11cb9c8 commit 734e5ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ COPY --from=builder app ./
CMD ng test --karma-config karma-ci.conf.js

FROM ghcr.io/cjmalloy/docker-nginx-brotli:master as deploy
RUN sed -i '1i load_module /usr/lib/nginx/modules/ngx_http_brotli_filter_module.so;' /etc/nginx/nginx.conf
RUN sed -i '1i load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so;' /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html/
COPY --from=builder app/dist/jasper-ui ./
Expand Down
1 change: 1 addition & 0 deletions docker/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ server {

gzip on;
gzip_types *;
brotli on;
brotli_static on;
brotli_types *;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build --configuration production --source-map",
"postbuild": "for i in $(find dist/jasper-ui/ -type f -not -name \"*.br\" -print); do brotli -9 $i; done",
"postbuild": "for i in $(find dist/jasper-ui/ -type f -not -name \"*.br\" -not -name \"*.json\" -print); do brotli -9 $i; done",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"e2e": "ng e2e",
Expand Down

0 comments on commit 734e5ba

Please sign in to comment.