this_algorithm/web-frontend/vite.config.js

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