-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: optimize images on buildtime (lossless)
- Loading branch information
1 parent
bd4be3e
commit 61980e7
Showing
4 changed files
with
302 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vite'; | ||
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer'; | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit()] | ||
plugins: [sveltekit(), ViteImageOptimizer()] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,10 @@ | |
"prettier": "^3.0.1", | ||
"prettier-plugin-svelte": "^3.0.3", | ||
"prettier-plugin-tailwindcss": "^0.4.1", | ||
"turbo": "^1.10.12" | ||
"sharp": "^0.32.4", | ||
"svgo": "^3.0.2", | ||
"turbo": "^1.10.12", | ||
"vite-plugin-image-optimizer": "^1.1.7" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.