Skip to content

Commit

Permalink
chore: improve local playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 13, 2024
1 parent 61238d0 commit 6f88ce5
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 2 deletions.
Binary file added playgrounds/demo/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions playgrounds/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<link rel="icon" href="/favicon.png" />
<link href="/demo.css" rel="stylesheet" />
<!--ssr-head-->
</head>
Expand Down
3 changes: 2 additions & 1 deletion playgrounds/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"express": "^4.19.2",
"nodemon": "^3.0.3",
"svelte": "workspace:*",
"vite": "^5.0.13"
"vite": "^5.0.13",
"vite-plugin-inspect": "^0.8.4"
}
}
3 changes: 2 additions & 1 deletion playgrounds/demo/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineConfig } from 'vite';
import inspect from 'vite-plugin-inspect';
import { svelte } from '@sveltejs/vite-plugin-svelte';

export default defineConfig({
plugins: [svelte()],
plugins: [inspect(), svelte()],
optimizeDeps: {
// svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change
exclude: ['svelte']
Expand Down
110 changes: 110 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 6f88ce5

Please sign in to comment.