diff options
Diffstat (limited to 'svelte.config.js')
-rw-r--r-- | svelte.config.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/svelte.config.js b/svelte.config.js index 1fa366b..3baa3ff 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,6 @@ -import adapter from '@sveltejs/adapter-auto'; -import preprocess from 'svelte-preprocess'; +import adapter from '@sveltejs/adapter-auto' +import preprocess from 'svelte-preprocess' +import { minifyHtml } from 'vite-plugin-html' /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -13,7 +14,20 @@ const config = { // Override http methods in the Todo forms methodOverride: { allowed: ['PATCH', 'DELETE'] - } + }, + + // https://vitejs.dev/config/ + vite: { + plugins: [minifyHtml()], + build: { + rollupOptions: { + external: ['discord-api-types/payloads/v9', 'discord-api-types', 'discord-api-types/v9'], + output: { + manualChunks: undefined, + }, + }, + }, + }, } }; |