diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-02-23 22:42:14 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-02-23 22:42:14 +0100 |
commit | 81fd95753601f51bb6d0bb69870617fa2096905f (patch) | |
tree | c60450dc4e517a47e1fd38c87aa838c146cb3402 | |
parent | feat(web): pdf export (diff) | |
download | refinery-81fd95753601f51bb6d0bb69870617fa2096905f.tar.gz refinery-81fd95753601f51bb6d0bb69870617fa2096905f.tar.zst refinery-81fd95753601f51bb6d0bb69870617fa2096905f.zip |
build(web): include embedded font assets in service worker
-rw-r--r-- | subprojects/frontend/vite.config.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subprojects/frontend/vite.config.ts b/subprojects/frontend/vite.config.ts index fffaae20..2d066e38 100644 --- a/subprojects/frontend/vite.config.ts +++ b/subprojects/frontend/vite.config.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | 2 | * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/> |
3 | * | 3 | * |
4 | * SPDX-License-Identifier: EPL-2.0 | 4 | * SPDX-License-Identifier: EPL-2.0 |
5 | */ | 5 | */ |
@@ -30,6 +30,9 @@ const { mode, isDevelopment, devModePlugins, serverOptions } = | |||
30 | process.env['NODE_ENV'] ??= mode; | 30 | process.env['NODE_ENV'] ??= mode; |
31 | 31 | ||
32 | const fontsGlob = [ | 32 | const fontsGlob = [ |
33 | 'open-sans-latin-*.ttf', | ||
34 | 'open-sans-latin-400-{normal,italic}-*.woff2', | ||
35 | 'open-sans-latin-700-*.woff2', | ||
33 | 'open-sans-latin-wdth-{normal,italic}-*.woff2', | 36 | 'open-sans-latin-wdth-{normal,italic}-*.woff2', |
34 | 'jetbrains-mono-latin-wght-{normal,italic}-*.woff2', | 37 | 'jetbrains-mono-latin-wght-{normal,italic}-*.woff2', |
35 | ]; | 38 | ]; |