Skip to content

Commit 3b7403d

Browse files
author
marcellmueller
committed
chore: add font-display: swap to bc sans, compress cloudfront cache and purge unused css
1 parent 0d86740 commit 3b7403d

8 files changed

Lines changed: 656 additions & 145 deletions

File tree

admin/frontend/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StrictMode } from 'react';
22
import { createRoot } from 'react-dom/client';
3-
import '@bcgov/bc-sans/css/BC_Sans.css';
3+
import '@shared/styles/bc-sans.css';
44
import '@fortawesome/fontawesome-free/css/all.min.css';
55
import 'bootstrap/dist/css/bootstrap.min.css';
66
import '@/styles/global.scss';

infrastructure/frontend/cloudfront.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
113113
cached_methods = ["GET", "HEAD"]
114114
target_origin_id = aws_s3_bucket.frontend.bucket
115115
response_headers_policy_id = aws_cloudfront_response_headers_policy.csp_policy.id
116+
compress = true
116117

117118
forwarded_values {
118119
query_string = false

0 commit comments

Comments
 (0)