this_algorithm/web-frontend/vite.config.js

21 lines
533 B
JavaScript
Raw Normal View History

2023-02-27 01:20:21 -05:00
import { sveltekit } from '@sveltejs/kit/vite';
2023-03-25 23:52:24 -04:00
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
2023-02-27 01:20:21 -05:00
import { defineConfig } from 'vite';
2023-04-09 00:15:52 -04:00
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
2023-02-27 01:20:21 -05:00
export default defineConfig({
2023-04-09 00:15:52 -04:00
plugins: [
sveltekit(), SvelteKitPWA({
2023-03-25 23:52:24 -04:00
workbox: {
globPatterns: ['**/*.{js,html,wasm}'],
},
devOptions: {
enabled: true,
},
2023-04-09 00:15:52 -04:00
}),
wasm(),
topLevelAwait(),
]
2023-02-27 01:20:21 -05:00
});