vite-plugin-svelte-inspector Svelte Themes

Vite Plugin Svelte Inspector

If you are using vite-plugin-svelte, use the inspector options instead: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#inspector

vite-plugin-svelte-inspector

Play with the LIVE DEMO.

Installation

# pnpm
pnpm install vite-plugin-svelte-inspector -D

# yarn
yarn add vite-plugin-svelte-inspector -D

# npm
npm install vite-plugin-svelte-inspector -D

Usage

Add it to your SvelteKit project

// filename: svelte.config.js

// for vue2
import Inspector from 'vite-plugin-svelte-inspector';

/** @type {import('@sveltejs/kit').Config} */
const config = {
  kit: {
    // ...
    vite: {
      plugins: [Inspector()],
    },
  },
};

export default config;

License

MIT

Top categories

Loading Svelte Themes