diff options
author | 2022-09-04 21:43:15 +0200 | |
---|---|---|
committer | 2022-09-06 01:05:23 +0200 | |
commit | 036eecd1564465ba1f5dfaa33553fcbfb92c043f (patch) | |
tree | 1413564caf96a24111980e6f6c834079e0529898 /subprojects/frontend/vite.config.ts | |
parent | build(frontend): include TS SDK in repo (diff) | |
download | refinery-036eecd1564465ba1f5dfaa33553fcbfb92c043f.tar.gz refinery-036eecd1564465ba1f5dfaa33553fcbfb92c043f.tar.zst refinery-036eecd1564465ba1f5dfaa33553fcbfb92c043f.zip |
refactor(frontend): Inter font
Use a variable font to reduce the number of files to be deployed
Diffstat (limited to 'subprojects/frontend/vite.config.ts')
-rw-r--r-- | subprojects/frontend/vite.config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/frontend/vite.config.ts b/subprojects/frontend/vite.config.ts index 0c13f133..7cea4642 100644 --- a/subprojects/frontend/vite.config.ts +++ b/subprojects/frontend/vite.config.ts | |||
@@ -73,7 +73,7 @@ export default defineConfig({ | |||
73 | files: [ | 73 | files: [ |
74 | { | 74 | { |
75 | match: | 75 | match: |
76 | /(?:jetbrains-mono-latin-variable-wghtOnly-(?:italic|normal)|roboto-latin-(?:400|500)-normal).+\.woff2$/, | 76 | /(?:inter-latin-variable-wghtOnly-normal|jetbrains-mono-latin-variable-wghtOnly-(?:italic|normal)).+\.woff2$/, |
77 | attributes: { | 77 | attributes: { |
78 | type: 'font/woff2', | 78 | type: 'font/woff2', |
79 | as: 'font', | 79 | as: 'font', |
@@ -96,7 +96,7 @@ export default defineConfig({ | |||
96 | workbox: { | 96 | workbox: { |
97 | globPatterns: [ | 97 | globPatterns: [ |
98 | '**/*.{css,html,js}', | 98 | '**/*.{css,html,js}', |
99 | 'roboto-latin-{300,400,500,700}-normal.*.woff2', | 99 | 'inter-latin-variable-wghtOnly-normal.*.woff2', |
100 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}.*.woff2', | 100 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}.*.woff2', |
101 | ], | 101 | ], |
102 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, | 102 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, |