this_algorithm/web-frontend/vite.config.js

16 lines
452 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';
import wasmPack from 'vite-plugin-wasm-pack';
2023-02-27 01:20:21 -05:00
import { defineConfig } from 'vite';
export default defineConfig({
2023-03-25 23:52:24 -04:00
plugins: [sveltekit(), wasmPack('../xpin-wasm/'), SvelteKitPWA({
workbox: {
globPatterns: ['**/*.{js,html,wasm}'],
},
devOptions: {
enabled: true,
},
})]
2023-02-27 01:20:21 -05:00
});