This commit is contained in:
LeNei
2023-06-02 17:31:30 +02:00
parent f029e1ec0c
commit 1fbc723f6d
6 changed files with 857 additions and 11 deletions

849
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -30,7 +30,8 @@
"tailwindcss": "^3.2.4",
"tslib": "^2.4.1",
"typescript": "^4.9.3",
"vite": "^4.0.0"
"vite": "^4.0.0",
"vite-imagetools": "^4.0.15"
},
"type": "module",
"dependencies": {

View File

@@ -1,6 +1,6 @@
import ferrariImg from '$lib/assets/ferrari_488.jpeg';
import fordImg from '$lib/assets/ford_mustang.jpeg';
import lamborghiniImg from '$lib/assets/lamborghini_hurracan.jpeg';
import ferrariImg from '$lib/assets/ferrari_488.jpeg?h=200&webp';
import fordImg from '$lib/assets/ford_mustang.jpeg?h=200&webp';
import lamborghiniImg from '$lib/assets/lamborghini_hurracan.jpeg?h=200&webp';
interface Car {
img: string;

View File

@@ -1 +1 @@
export const ssr = false;
export const prerender = true;

View File

@@ -8,10 +8,7 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
fallback: 'index.html'
}),
prerender: { entries: [] }
adapter: adapter()
}
};

View File

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