Update config/packages

This commit is contained in:
Chris Dill 2022-08-15 17:31:32 +01:00
parent 034345b29f
commit 7395f859a9
6 changed files with 628 additions and 588 deletions

1184
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,17 +2,18 @@
"name": "quartznet", "name": "quartznet",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"dev": "svelte-kit dev", "dev": "vite dev",
"build": "svelte-kit build", "build": "vite build",
"preview": "svelte-kit preview" "preview": "vite preview"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-static": "^1.0.0-next.13", "@sveltejs/adapter-static": "^1.0.0-next.39",
"@sveltejs/kit": "next", "@sveltejs/kit": "next",
"svelte": "^3.44.0", "svelte": "^3.46.0",
"svelte-preprocess": "^4.10.1", "svelte-preprocess": "^4.10.6",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "~4.6.2" "typescript": "^4.6.4",
"vite": "^3.0.9"
}, },
"type": "module" "type": "module"
} }

View File

@ -11,9 +11,9 @@
<!-- <link rel="manifest" href="manifest.json" crossorigin="use-credentials"> --> <!-- <link rel="manifest" href="manifest.json" crossorigin="use-credentials"> -->
<link rel="icon" type="image/png" href="/img/favicon.ico"> <link rel="icon" type="image/png" href="/img/favicon.ico">
%svelte.head% %sveltekit.head%
</head> </head>
<body> <body>
<div id="svelte">%svelte.body%</div> <div id="svelte">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@ -5,6 +5,9 @@ import preprocess from 'svelte-preprocess';
const config = { const config = {
preprocess: preprocess(), preprocess: preprocess(),
kit: { kit: {
prerender: {
default: true
},
adapter: adapter({ adapter: adapter({
pages: 'build' pages: 'build'
}) })

View File

@ -1,5 +1,5 @@
{ {
// "extends": "./.svelte-kit/tsconfig.json", "extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,

8
vite.config.js Normal file
View File

@ -0,0 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
};
export default config;