Skip to content

Commit

Permalink
pkg: add svelte enhanced images
Browse files Browse the repository at this point in the history
  • Loading branch information
deansallinen committed Dec 17, 2024
1 parent b346b84 commit dfd1db1
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@accuser/svelte-plausible-analytics": "^1.0.0",
"@coinbase/cbpay-js": "^2.4.0",
"@fontsource/jetbrains-mono": "^5.1.0",
"@sveltejs/enhanced-img": "^0.4.4",
"@tailwindcss/container-queries": "^0.1.1",
"@wharfkit/account": "^1.3.0",
"@wharfkit/account-creation-plugin-greymass": "^1.2.0",
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { paraglide } from '@inlang/paraglide-sveltekit/vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { defineConfig } from 'vite';
import path from 'node:path';

export default defineConfig({
plugins: [paraglide({ project: './project.inlang', outdir: './src/lib/paraglide' }), sveltekit()],
plugins: [
paraglide({ project: './project.inlang', outdir: './src/lib/paraglide' }),
enhancedImages(),
sveltekit()
],
resolve: {
alias: {
$paraglide: path.resolve(__dirname, './src/paraglide')
Expand Down
Loading

0 comments on commit dfd1db1

Please sign in to comment.