diff options
Diffstat (limited to 'subprojects/frontend/vite.config.ts')
-rw-r--r-- | subprojects/frontend/vite.config.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subprojects/frontend/vite.config.ts b/subprojects/frontend/vite.config.ts index 2c810912..08b3db0c 100644 --- a/subprojects/frontend/vite.config.ts +++ b/subprojects/frontend/vite.config.ts | |||
@@ -4,9 +4,9 @@ import path from 'node:path'; | |||
4 | import { fileURLToPath } from 'node:url'; | 4 | import { fileURLToPath } from 'node:url'; |
5 | 5 | ||
6 | import { lezer } from '@lezer/generator/rollup'; | 6 | import { lezer } from '@lezer/generator/rollup'; |
7 | import react from '@vitejs/plugin-react'; | 7 | import react from '@vitejs/plugin-react-swc'; |
8 | import { minify } from 'html-minifier-terser'; | 8 | import { minify } from 'html-minifier-terser'; |
9 | import { defineConfig, PluginOption } from 'vite'; | 9 | import { defineConfig, type PluginOption } from 'vite'; |
10 | import injectPreload from 'vite-plugin-inject-preload'; | 10 | import injectPreload from 'vite-plugin-inject-preload'; |
11 | import { VitePWA } from 'vite-plugin-pwa'; | 11 | import { VitePWA } from 'vite-plugin-pwa'; |
12 | 12 | ||
@@ -104,8 +104,8 @@ export default defineConfig({ | |||
104 | workbox: { | 104 | workbox: { |
105 | globPatterns: [ | 105 | globPatterns: [ |
106 | '**/*.{css,html,js}', | 106 | '**/*.{css,html,js}', |
107 | 'inter-latin-variable-wghtOnly-normal.*.woff2', | 107 | 'inter-latin-variable-wghtOnly-normal-*.woff2', |
108 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}.*.woff2', | 108 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}-*.woff2', |
109 | ], | 109 | ], |
110 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, | 110 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, |
111 | navigateFallbackDenylist: [/^\/xtext-service/], | 111 | navigateFallbackDenylist: [/^\/xtext-service/], |