Skip to content

Commit

Permalink
Fixed Deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinosh committed Dec 17, 2024
1 parent 01010d2 commit 907fc25
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 85 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ node_modules

pnpm-lock.yaml
package-lock.json
yarn.lock
yarn.lock

vite.config.js.timestamp-*
vite.config.ts.timestamp-*
147 changes: 67 additions & 80 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.10",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@tauri-apps/cli": "^1.5.14",
"@tauri-apps/cli": "^2.0.3",
"@types/eslint": "^8.56.10",
"@types/qrcode": "^1.5.5",
"@typescript-eslint/eslint-plugin": "^7.11.0",
Expand All @@ -47,4 +47,4 @@
"typescript": "^5.4.5",
"vite": "^5.2.11"
}
}
}
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"icons/icon.ico"
]
}
}
}
15 changes: 14 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@ const host = process.env.TAURI_DEV_HOST;

export default defineConfig({
plugins: [sveltekit()],
});
clearScreen: false,
server: {
host: host || false,
port: 1420,
strictPort: true,
hmr: host
? {
protocol: 'ws',
host: host,
port: 1430,
}
: undefined,
},
});

0 comments on commit 907fc25

Please sign in to comment.