vite-plugin-svelte-inspector
v0.2.1
Published
Play with the [LIVE DEMO](https://stackblitz.com/edit/sveltejs-kit-template-default-gnpnjl).
Downloads
157
Readme
If you are using
vite-plugin-svelte
, use theinspector
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;