diff options
| author | mat <github@matdoes.dev> | 2022-12-15 14:59:56 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-12-15 14:59:56 -0600 |
| commit | 6e723aadf6de45a79b4ef64d288ea275628232c5 (patch) | |
| tree | c27bcc33aefa9212baf6f3d9c2eb1af88d6c5105 /vite.config.js | |
| parent | 89bf3d31e36ad3bdfd45461ee6fb69a4c791f848 (diff) | |
| download | skyblock-stats-6e723aadf6de45a79b4ef64d288ea275628232c5.tar.gz skyblock-stats-6e723aadf6de45a79b4ef64d288ea275628232c5.tar.bz2 skyblock-stats-6e723aadf6de45a79b4ef64d288ea275628232c5.zip | |
start updating to sveltekit v1
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..76377b1 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,28 @@ +import { sveltekit } from '@sveltejs/kit/vite' + +/** @type {import('vite').UserConfig} */ +const config = { + plugins: [sveltekit()], + build: { + rollupOptions: { + output: { + manualChunks: undefined, + }, + }, + }, + // if the user is on replit or gitpod, use a secure websocket + server: + process.env.REPL_ID || process.env.GITPOD_WORKSPACE_ID + ? { + hmr: process.env.GITPOD_WORKSPACE_URL + ? { + host: process.env.GITPOD_WORKSPACE_URL.replace('https://', '3000-'), + protocol: "wss", + clientPort: 443 + } + : true + } + : {}, +} + +export default config
\ No newline at end of file |
