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 02:10:46 -05:00
|
|
|
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
|
|
|
});
|