Skip to content

Commit

Permalink
Update frontend deps; drop woff support
Browse files Browse the repository at this point in the history
nearly everything supports woff2 now
  • Loading branch information
lazka committed Aug 9, 2024
1 parent e4b1d3b commit 1ff07f8
Show file tree
Hide file tree
Showing 9 changed files with 1,045 additions and 443 deletions.
Binary file removed app/static/fonts/roboto-latin-400-normal.woff
Binary file not shown.
Binary file modified app/static/fonts/roboto-latin-400-normal.woff2
Binary file not shown.
Binary file removed app/static/fonts/roboto-latin-700-normal.woff
Binary file not shown.
Binary file modified app/static/fonts/roboto-latin-700-normal.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion app/static/index.css

Large diffs are not rendered by default.

1,474 changes: 1,039 additions & 435 deletions frontend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"bootstrap": "^5.3.0",
"node-sass": "^9.0.0",
"postcss": "^8.4.23",
"postcss-logical": "^7.0.0",
"postcss-logical": "^8.0.0",
"rollup": "^4.1.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-license": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions frontend/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Dependencies:
}),
copy({
targets: [
{ src: 'node_modules/@fontsource/roboto/files/roboto-latin-400-normal.woff*', dest: '../app/static/fonts' },
{ src: 'node_modules/@fontsource/roboto/files/roboto-latin-700-normal.woff*', dest: '../app/static/fonts' },
{ src: 'node_modules/@fontsource/roboto/files/roboto-latin-400-normal.woff2', dest: '../app/static/fonts' },
{ src: 'node_modules/@fontsource/roboto/files/roboto-latin-700-normal.woff2', dest: '../app/static/fonts' },
]
}),
!dev && getBabelOutputPlugin({
Expand Down
6 changes: 2 additions & 4 deletions frontend/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ body {
font-display: swap;
font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'),
url('fonts/roboto-latin-400-normal.woff2') format('woff2'),
url('fonts/roboto-latin-400-normal.woff') format('woff');
url('fonts/roboto-latin-400-normal.woff2') format('woff2');
}

@font-face {
Expand All @@ -138,6 +137,5 @@ body {
font-display: swap;
font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'),
url('fonts/roboto-latin-700-normal.woff2') format('woff2'),
url('fonts/roboto-latin-700-normal.woff') format('woff');
url('fonts/roboto-latin-700-normal.woff2') format('woff2');
}

0 comments on commit 1ff07f8

Please sign in to comment.